Commit 1afa8947 authored by Daniel W Bond's avatar Daniel W Bond

new method assessing whether or not a student is a resident or staff (either RA or RD)

parent 6ea1cc24
......@@ -296,6 +296,12 @@ class Student(TimeStampedModel):
else:
return self.user.get_full_name()
def is_staff(self):
staff = False
if self.lead == 'Resident Advisor' or self.lead == 'Resident Director':
staff = True
return staff
# how recently has the student joined roomlist? changes some messages displayed
def is_noob(self):
now = timezone.now()
......
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