diff --git a/tjdests/apps/profile/forms.py b/tjdests/apps/profile/forms.py index 6cdf8e1..ec6174e 100644 --- a/tjdests/apps/profile/forms.py +++ b/tjdests/apps/profile/forms.py @@ -24,7 +24,7 @@ class ProfilePublishForm(forms.ModelForm): class Meta: model = User - fields = ["publish_data", "biography", "attending_decision"] + fields = ["publish_data", "GPA", "biography", "attending_decision"] help_texts = { "biography": "ECs, intended major, advice, etc.", diff --git a/tjdests/apps/profile/tests.py b/tjdests/apps/profile/tests.py index 26b8ac4..e61034c 100644 --- a/tjdests/apps/profile/tests.py +++ b/tjdests/apps/profile/tests.py @@ -34,6 +34,7 @@ class ProfileTest(TJDestsTestCase): response = self.client.post( reverse("profile:index"), data={ + "GPA": 4.000, "biography": "hello", "attending_decision": "", "publish_data": False, @@ -43,6 +44,7 @@ class ProfileTest(TJDestsTestCase): self.assertEqual( 1, User.objects.filter( + GPA=4.000, id=user.id, biography="hello", attending_decision=None, @@ -59,6 +61,7 @@ class ProfileTest(TJDestsTestCase): response = self.client.post( reverse("profile:index"), data={ + "GPA": 3.141, "biography": "hello2", "attending_decision": decision.id, "publish_data": True, @@ -69,6 +72,7 @@ class ProfileTest(TJDestsTestCase): 1, User.objects.filter( id=user.id, + GPA=3.141, biography="hello2", attending_decision=decision, publish_data=True, @@ -88,6 +92,7 @@ class ProfileTest(TJDestsTestCase): response = self.client.post( reverse("profile:index"), data={ + "GPA": 1.234, "biography": "hello2", "attending_decision": decision2.id, "publish_data": True, @@ -98,6 +103,7 @@ class ProfileTest(TJDestsTestCase): 1, User.objects.filter( id=user.id, + GPA=1.234, biography="hello2", attending_decision=decision, publish_data=True, diff --git a/tjdests/templates/destinations/student_list.html b/tjdests/templates/destinations/student_list.html index d3c9fd2..fe2999f 100644 --- a/tjdests/templates/destinations/student_list.html +++ b/tjdests/templates/destinations/student_list.html @@ -38,6 +38,7 @@ Name + GPA Test scores Biography Decisions @@ -47,6 +48,7 @@ {% for senior in object_list %} {{ senior }} + {{ senior.GPA|stringformat:".3f" }} {# Test scores #}