Add support for serving users' avatars through the Libravatar API
This commit is contained in:
parent
6fb289727c
commit
43348a89da
8 changed files with 152 additions and 37 deletions
24
users/migrations/0013_auto_20180323_1200.py
Normal file
24
users/migrations/0013_auto_20180323_1200.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 2.0.3 on 2018-03-23 01:00
|
||||
|
||||
import computed_property.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0012_auto_20180129_1614'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='email_md5',
|
||||
field=computed_property.fields.ComputedCharField(compute_from='calc_email_md5', default='', editable=False, max_length=32, unique=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='email_sha256',
|
||||
field=computed_property.fields.ComputedCharField(compute_from='calc_email_sha256', default='', editable=False, max_length=64, unique=True),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue