From 364c565fed5ebdb0da86927a25d56631502b3792 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Mon, 4 Nov 2024 17:12:17 +0000 Subject: [PATCH] fix: Extend user first name length to 150 characters (#4797) --- .../0039_alter_ffadminuser_first_name.py | 18 ++++++++++++++++++ api/users/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 api/users/migrations/0039_alter_ffadminuser_first_name.py diff --git a/api/users/migrations/0039_alter_ffadminuser_first_name.py b/api/users/migrations/0039_alter_ffadminuser_first_name.py new file mode 100644 index 000000000000..11406f6da6e9 --- /dev/null +++ b/api/users/migrations/0039_alter_ffadminuser_first_name.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.16 on 2024-11-04 17:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("users", "0038_create_hubspot_tracker"), + ] + + operations = [ + migrations.AlterField( + model_name="ffadminuser", + name="first_name", + field=models.CharField(max_length=150, verbose_name="first name"), + ), + ] diff --git a/api/users/models.py b/api/users/models.py index 07e84513078a..2030ad05c3f7 100644 --- a/api/users/models.py +++ b/api/users/models.py @@ -99,7 +99,7 @@ class FFAdminUser(LifecycleModel, AbstractUser): email = models.EmailField(unique=True, null=False) objects = UserManager() username = models.CharField(unique=True, max_length=150, null=True, blank=True) - first_name = models.CharField("first name", max_length=30) + first_name = models.CharField("first name", max_length=150) last_name = models.CharField("last name", max_length=150) google_user_id = models.CharField(max_length=50, null=True, blank=True) github_user_id = models.CharField(max_length=50, null=True, blank=True)