Commit a5c462b2 authored by Daniel W Bond's avatar Daniel W Bond

some fields now optional; renamed graduating year variable

parent 36003cfc
...@@ -89,8 +89,8 @@ class Student(TimeStampedModel): ...@@ -89,8 +89,8 @@ class Student(TimeStampedModel):
privacy = models.CharField(max_length=100, choices=PRIVACY_CHOICES, default=FLOOR) privacy = models.CharField(max_length=100, choices=PRIVACY_CHOICES, default=FLOOR)
room = models.ForeignKey(Room, null=True, blank=True) room = models.ForeignKey(Room, null=True, blank=True)
clas = models.ForeignKey(Class) clas = models.ForeignKey(Class, null=True, blank=True)
major = models.ForeignKey('Major') major = models.ForeignKey('Major', null=True, blank=True)
# social media accounts # social media accounts
......
...@@ -113,7 +113,7 @@ class Room(TimeStampedModel): ...@@ -113,7 +113,7 @@ class Room(TimeStampedModel):
# return self.street # return self.street
class Class(TimeStampedModel): class Class(TimeStampedModel):
year_int = models.IntegerField() grad_year = models.PositiveIntegerField()
FRESHMAN = 'FR' FRESHMAN = 'FR'
SOPHOMORE = 'SO' SOPHOMORE = 'SO'
JUNIOR = 'JR' JUNIOR = 'JR'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment