diff --git a/backend/accounts/migrations/0007_alter_user_username.py b/backend/accounts/migrations/0007_alter_user_username.py new file mode 100644 index 00000000..925a237e --- /dev/null +++ b/backend/accounts/migrations/0007_alter_user_username.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.13 on 2024-07-03 10:38 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("accounts", "0006_user_is_ngohub_user"), + ] + + operations = [ + migrations.AlterField( + model_name="user", + name="username", + field=models.CharField( + help_text="Nu utilizăm acest câmp", + max_length=150, + null=True, + unique=True, + verbose_name="nume utilizator", + ), + ), + ] diff --git a/backend/accounts/models.py b/backend/accounts/models.py index f12a937c..d06b09d0 100644 --- a/backend/accounts/models.py +++ b/backend/accounts/models.py @@ -13,7 +13,6 @@ class User(AbstractUser): help_text=_("We do not use this field"), validators=[], null=True, - editable=False, ) email = models.EmailField(verbose_name=_("email address"), blank=False, null=False, unique=True) is_ngohub_user = models.BooleanField(default=False)