Skip to content

Commit

Permalink
Change max length for major name
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Nov 5, 2023
1 parent f21676e commit 4fd8a1a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions backend/accounts/migrations/0006_alter_major_name.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion backend/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4fd8a1a

Please sign in to comment.