From 0aa3525f256ad843b04ca40a2e37fd7ebe01c07c Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Tue, 11 Apr 2023 09:23:37 -0500 Subject: [PATCH] style: change profile form help text and order (#176) --- .../migrations/0015_alter_user_gpa.py | 23 +++++++++++++++++++ tjdests/apps/authentication/models.py | 2 +- tjdests/apps/profile/forms.py | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 tjdests/apps/authentication/migrations/0015_alter_user_gpa.py diff --git a/tjdests/apps/authentication/migrations/0015_alter_user_gpa.py b/tjdests/apps/authentication/migrations/0015_alter_user_gpa.py new file mode 100644 index 0000000..db0d8f3 --- /dev/null +++ b/tjdests/apps/authentication/migrations/0015_alter_user_gpa.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.18 on 2023-04-11 14:05 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("authentication", "0014_user_is_banned"), + ] + + operations = [ + migrations.AlterField( + model_name="user", + name="GPA", + field=models.DecimalField( + blank=True, + decimal_places=3, + help_text="Pre-senior year, weighted GPA", + max_digits=4, + null=True, + ), + ), + ] diff --git a/tjdests/apps/authentication/models.py b/tjdests/apps/authentication/models.py index 986d9f1..d6c6fd5 100644 --- a/tjdests/apps/authentication/models.py +++ b/tjdests/apps/authentication/models.py @@ -12,7 +12,7 @@ class User(AbstractUser): null=True, blank=True, name="GPA", - help_text="Weighted GPA", + help_text="Pre-senior year, weighted GPA", max_digits=4, decimal_places=3, ) diff --git a/tjdests/apps/profile/forms.py b/tjdests/apps/profile/forms.py index 1a566c6..f4d84b3 100644 --- a/tjdests/apps/profile/forms.py +++ b/tjdests/apps/profile/forms.py @@ -56,8 +56,8 @@ class ProfilePublishForm(forms.ModelForm): "use_nickname", "publish_data", "GPA", - "biography", "attending_decision", + "biography", ] help_texts = {