Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
1afa8947
Commit
1afa8947
authored
May 25, 2017
by
Daniel W Bond
Browse files
new method assessing whether or not a student is a resident or staff (either RA or RD)
parent
6ea1cc24
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
1afa8947
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment