diff --git a/roomlist/accounts/models.py b/roomlist/accounts/models.py index cd6f2aa63683980c39f02867ed7917f518e18a80..b0c629d9f83580d755be276f7d41701b66185a37 100644 --- a/roomlist/accounts/models.py +++ b/roomlist/accounts/models.py @@ -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 diff --git a/roomlist/housing/models.py b/roomlist/housing/models.py index 9ee415894f1ce2cbe2e59f8ef8600e4c06679195..491aab411b3de7c2bc3f3598f0f83daa060744f9 100644 --- a/roomlist/housing/models.py +++ b/roomlist/housing/models.py @@ -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'