Skip to content

Commit

Permalink
merge 0070 + 0071 and remove contraint
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jan 4, 2024
1 parent 1b0a3fb commit 688aa79
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Django 5.0 on 2024-01-04 12:02

import core.utils.fields
import django.db.models.functions.text
import core.models.user
from django.db import migrations, models


Expand Down Expand Up @@ -70,11 +70,14 @@ class Migration(migrations.Migration):
size=None,
),
),
migrations.AddConstraint(
model_name="user",
constraint=models.UniqueConstraint(
django.db.models.functions.text.Lower("username"),
name="username-lower-check",
),
migrations.AlterModelOptions(
name="user",
options={"verbose_name": "user", "verbose_name_plural": "users"},
),
migrations.AlterModelManagers(
name="user",
managers=[
("objects", core.models.user.CaseInsensitiveUserManager()),
],
),
]

0 comments on commit 688aa79

Please sign in to comment.