Commit 7f2ba52d authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added related name field on room for student (not sure why this wasn't there already)

parent f2a0b033
......@@ -166,7 +166,7 @@ class Student(TimeStampedModel):
privacy = models.CharField(max_length=100, choices=PRIVACY_CHOICES, default=FLOOR)
on_campus = models.BooleanField(default=True)
room = models.ForeignKey(Room, null=True, blank=True)
room = models.ForeignKey(Room, related_name='room', null=True, blank=True)
major = models.ManyToManyField(Major, related_name='majors', blank=True)
......
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