Skip to content

Commit

Permalink
chore: set avatar field to be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Salaton committed Nov 18, 2021
1 parent ba8c1d4 commit 0f72642
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions mycarehub/users/migrations/0012_alter_user_avatar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.9 on 2021-11-18 18:20

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0011_auto_20211118_2029'),
]

operations = [
migrations.AlterField(
model_name='user',
name='avatar',
field=models.TextField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion mycarehub/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class User(AbstractUser):
)
flavour = CharField(choices=FlavourChoices.choices, max_length=32, null=True)
terms_accepted = BooleanField(default=False, null=False)
avatar = TextField(blank=True)
avatar = TextField(blank=True, null=True)
is_suspended = BooleanField(
default=False,
)
Expand Down

0 comments on commit 0f72642

Please sign in to comment.