diff --git a/tjdests/apps/authentication/migrations/0013_alter_user_gpa.py b/tjdests/apps/authentication/migrations/0013_alter_user_gpa.py new file mode 100644 index 0000000..facd2ff --- /dev/null +++ b/tjdests/apps/authentication/migrations/0013_alter_user_gpa.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2022-02-17 15:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authentication', '0012_user_preferred_name'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='GPA', + field=models.DecimalField(blank=True, decimal_places=3, help_text='Weighted GPA', max_digits=4, null=True), + ), + ] diff --git a/tjdests/apps/authentication/models.py b/tjdests/apps/authentication/models.py index a7bcd4d..a4c3588 100644 --- a/tjdests/apps/authentication/models.py +++ b/tjdests/apps/authentication/models.py @@ -8,7 +8,7 @@ class User(AbstractUser): accepted_terms = models.BooleanField(default=False) graduation_year = models.PositiveSmallIntegerField(null=True) - GPA = models.FloatField(null=True, blank=True, name="GPA", help_text="Weighted GPA") + GPA = models.DecimalField(null=True, blank=True, name="GPA", help_text="Weighted GPA", max_digits=4, decimal_places=3) is_senior = models.BooleanField(default=False) is_student = models.BooleanField(default=False) diff --git a/tjdests/templates/destinations/student_list.html b/tjdests/templates/destinations/student_list.html index 1237426..703bf6c 100644 --- a/tjdests/templates/destinations/student_list.html +++ b/tjdests/templates/destinations/student_list.html @@ -49,7 +49,7 @@ {% for senior in object_list %}