From 13a46cb1dbf44326b3cd8c22a37b170e5894424c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 19 Nov 2020 10:12:12 +0200 Subject: [PATCH] Myauth: add missing migration. Fixes #70 --- myauth/migrations/0003_auto_20201119_0810.py | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 myauth/migrations/0003_auto_20201119_0810.py diff --git a/myauth/migrations/0003_auto_20201119_0810.py b/myauth/migrations/0003_auto_20201119_0810.py new file mode 100644 index 0000000..cfd2ec3 --- /dev/null +++ b/myauth/migrations/0003_auto_20201119_0810.py @@ -0,0 +1,37 @@ +# Generated by Django 3.1.1 on 2020-11-19 08:10 + +from django.db import migrations, models +import myauth.models + + +class Migration(migrations.Migration): + + dependencies = [ + ("myauth", "0002_auto_20200515_0801"), + ] + + operations = [ + migrations.AlterModelManagers( + name="user", + managers=[ + ("objects", myauth.models.UserManager()), + ], + ), + migrations.AlterField( + model_name="user", + name="first_name", + field=models.CharField(blank=True, max_length=150, verbose_name="first name"), + ), + migrations.AlterField( + model_name="user", + name="username", + field=models.CharField( + error_messages={"unique": "A user with that username already exists."}, + help_text="Required. 150 characters or fewer. Letters, digits and ./-/_ only.", + max_length=150, + unique=True, + validators=[myauth.models.UnicodeUsernameValidator()], + verbose_name="username", + ), + ), + ]