feat(authentication): add GPA db entry

This commit is contained in:
Ethan Nguyen 2021-04-21 22:21:34 -04:00
parent dbfc9b422b
commit b7476b3a51
No known key found for this signature in database
GPG Key ID: B4CA5339AF911920
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2 on 2021-04-22 02:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentication", "0004_auto_20210419_1713"),
]
operations = [
migrations.AddField(
model_name="user",
name="GPA",
field=models.FloatField(help_text="Weighted GPA", null=True),
),
]

View File

@ -8,6 +8,8 @@ class User(AbstractUser):
accepted_terms = models.BooleanField(default=False)
graduation_year = models.PositiveSmallIntegerField(null=True)
gpa = models.FloatField(null=True, name="GPA", help_text="Weighted GPA")
is_senior = models.BooleanField(default=False)
is_student = models.BooleanField(default=False)