Skip to content

Commit

Permalink
fix: Extend user first name length to 150 characters (#4797)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Nov 4, 2024
1 parent 43e68c1 commit 364c565
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions api/users/migrations/0039_alter_ffadminuser_first_name.py
Original file line number Diff line number Diff line change
@@ -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"),
),
]
2 changes: 1 addition & 1 deletion api/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 364c565

Please sign in to comment.