summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorThom Wiggers <thom@thomwiggers.nl>2017-01-22 15:45:42 +0100
committerTim Graham <timograham@gmail.com>2017-01-28 09:29:00 -0500
commitd5b573d872bbe0d5825efaee2d41cb3cdc75417b (patch)
tree3ae230039a3802d0e7b3b1bfbb28d2a41a11e7e0 /django
parent0de0699d94ccd078c83eadef296a0d9ccd65a62f (diff)
Fixed #26993 -- Increased User.last_name max_length to 150 characters.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py16
-rw-r--r--django/contrib/auth/models.py2
2 files changed, 17 insertions, 1 deletions
diff --git a/django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py b/django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py
new file mode 100644
index 0000000000..b217359e48
--- /dev/null
+++ b/django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py
@@ -0,0 +1,16 @@
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('auth', '0008_alter_user_username_max_length'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='user',
+ name='last_name',
+ field=models.CharField(blank=True, max_length=150, verbose_name='last name'),
+ ),
+ ]
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 7476a69517..7da65666b1 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -311,7 +311,7 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin):
},
)
first_name = models.CharField(_('first name'), max_length=30, blank=True)
- last_name = models.CharField(_('last name'), max_length=30, blank=True)
+ last_name = models.CharField(_('last name'), max_length=150, blank=True)
email = models.EmailField(_('email address'), blank=True)
is_staff = models.BooleanField(
_('staff status'),