From 4fd8a1a4c24c5f9e9b7aa01161e93c7ed14e0e8d Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Sun, 5 Nov 2023 01:04:40 -0500 Subject: [PATCH] Change max length for major name --- .../migrations/0006_alter_major_name.py | 17 +++++++++++++++++ backend/accounts/models.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 backend/accounts/migrations/0006_alter_major_name.py diff --git a/backend/accounts/migrations/0006_alter_major_name.py b/backend/accounts/migrations/0006_alter_major_name.py new file mode 100644 index 0000000..b75fd59 --- /dev/null +++ b/backend/accounts/migrations/0006_alter_major_name.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.7 on 2023-11-05 06:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("accounts", "0005_privacyresource_privacysetting"), + ] + + operations = [ + migrations.AlterField( + model_name="major", + name="name", + field=models.CharField(max_length=150), + ), + ] diff --git a/backend/accounts/models.py b/backend/accounts/models.py index e403224..9dfbec9 100644 --- a/backend/accounts/models.py +++ b/backend/accounts/models.py @@ -35,7 +35,7 @@ class Major(models.Model): Represents a major at the University of Pennsylvania. """ - name = models.CharField(max_length=100) + name = models.CharField(max_length=150) is_active = models.BooleanField(default=True) DEGREE_BACHELOR = "BACHELORS"