mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 09:40:16 -04:00
fix(authentication): make GPA field optional
This commit is contained in:
parent
560037780f
commit
c1a8206bbb
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2 on 2021-04-22 12:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("authentication", "0006_alter_user_biography"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="user",
|
||||||
|
name="GPA",
|
||||||
|
field=models.FloatField(blank=True, help_text="Weighted GPA", null=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -8,7 +8,7 @@ class User(AbstractUser):
|
||||||
accepted_terms = models.BooleanField(default=False)
|
accepted_terms = models.BooleanField(default=False)
|
||||||
graduation_year = models.PositiveSmallIntegerField(null=True)
|
graduation_year = models.PositiveSmallIntegerField(null=True)
|
||||||
|
|
||||||
gpa = models.FloatField(null=True, name="GPA", help_text="Weighted GPA")
|
gpa = models.FloatField(null=True, blank=True, name="GPA", help_text="Weighted GPA")
|
||||||
|
|
||||||
is_senior = models.BooleanField(default=False)
|
is_senior = models.BooleanField(default=False)
|
||||||
is_student = models.BooleanField(default=False)
|
is_student = models.BooleanField(default=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user