Skip to content

Commit

Permalink
chore: add suspended and avatar fields to user model
Browse files Browse the repository at this point in the history
  • Loading branch information
Salaton committed Nov 18, 2021
1 parent 7bd30e9 commit 7ff5cef
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mycarehub/users/migrations/0011_auto_20211118_2029.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.9 on 2021-11-18 17:29

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0010_alter_userotp_otp'),
]

operations = [
migrations.AddField(
model_name='user',
name='avatar',
field=models.TextField(blank=True),
),
migrations.AddField(
model_name='user',
name='is_suspended',
field=models.BooleanField(default=False),
),
]
4 changes: 4 additions & 0 deletions mycarehub/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ class User(AbstractUser):
)
flavour = CharField(choices=FlavourChoices.choices, max_length=32, null=True)
terms_accepted = BooleanField(default=False, null=False)
avatar = TextField(blank=True)
is_suspended = BooleanField(
default=False,
)

@property
def permissions(self):
Expand Down

0 comments on commit 7ff5cef

Please sign in to comment.