Commit 8d48594b authored by Daniel W Bond's avatar Daniel W Bond

inexplicably these fields weren't model booleans before

parent de25d47e
......@@ -131,21 +131,15 @@ class Student(TimeStampedModel):
# social media accounts
# welcome walkthrough completion
completedName = False
completedPrivacy = False
completedMajor = False
completedSocial = False
completedName = models.BooleanField(default=False)
completedPrivacy = models.BooleanField(default=False)
completedMajor = models.BooleanField(default=False)
completedSocial = models.BooleanField(default=False)
slug = AutoSlugField(populate_from='user', unique=True)
objects = StudentManager()
def get_percent_welcomed():
# True is 1
doneness = sum(completedName, completedPrivacy,
completedMajor, completedSocial)
return (doneness/4)
def get_floor(self):
try:
floor = self.room.floor
......
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