Skip to content

Commit

Permalink
Make the username editable even if it's unused
Browse files Browse the repository at this point in the history
  • Loading branch information
danniel committed Jul 3, 2024
1 parent 1a5b87a commit 2cdc137
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 24 additions & 0 deletions backend/accounts/migrations/0007_alter_user_username.py
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
1 change: 0 additions & 1 deletion backend/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2cdc137

Please sign in to comment.