Commit 1d4e8666 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added variables to track welcome walkthrough completion

parent 623b21d9
......@@ -129,10 +129,22 @@ class Student(TimeStampedModel):
# social media accounts
# welcome walkthrough completion
completedName = False
completedPrivacy = False
completedMajor = False
completedSocial = 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):
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