From 7ff5cef46c5557d865c0d73e3a4e0b829ef80751 Mon Sep 17 00:00:00 2001 From: Salaton Date: Thu, 18 Nov 2021 20:27:07 +0300 Subject: [PATCH] chore: add `suspended` and `avatar` fields to user model --- .../migrations/0011_auto_20211118_2029.py | 23 +++++++++++++++++++ mycarehub/users/models.py | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 mycarehub/users/migrations/0011_auto_20211118_2029.py diff --git a/mycarehub/users/migrations/0011_auto_20211118_2029.py b/mycarehub/users/migrations/0011_auto_20211118_2029.py new file mode 100644 index 0000000..e88c57b --- /dev/null +++ b/mycarehub/users/migrations/0011_auto_20211118_2029.py @@ -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), + ), + ] diff --git a/mycarehub/users/models.py b/mycarehub/users/models.py index 9267a0d..beaee90 100644 --- a/mycarehub/users/models.py +++ b/mycarehub/users/models.py @@ -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):