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):
privacy = models.CharField(max_length=100, choices=PRIVACY_CHOICES, default=FLOOR)
room = models.ForeignKey(Room, null=True, blank=True)
clas = models.ForeignKey(Class)
major = models.ForeignKey('Major')
clas = models.ForeignKey(Class, null=True, blank=True)
major = models.ForeignKey('Major', null=True, blank=True)
# social media accounts
......
......@@ -113,7 +113,7 @@ class Room(TimeStampedModel):
# return self.street
class Class(TimeStampedModel):
year_int = models.IntegerField()
grad_year = models.PositiveIntegerField()
FRESHMAN = 'FR'
SOPHOMORE = 'SO'
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