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
6ea1cc24
Commit
6ea1cc24
authored
May 25, 2017
by
Daniel W Bond
Browse files
added leadership options to student model
parent
6b658a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
6ea1cc24
...
...
@@ -160,6 +160,18 @@ class Student(TimeStampedModel):
(
OTHER
,
'other'
),
)
RESIDENT
=
'Resident'
RA
=
'Resident Advisor'
RD
=
'Resident Director'
LEAD_CHOICES
=
(
(
RESIDENT
,
'Resident'
),
(
RA
,
'Resident Advisor'
),
(
RD
,
'Resident Director'
),
)
lead
=
models
.
CharField
(
max_length
=
100
,
choices
=
LEAD_CHOICES
,
default
=
RESIDENT
)
# selectmultiple in forms
gender
=
MultiSelectField
(
max_length
=
100
,
choices
=
GENDER_CHOICES
,
blank
=
True
)
show_gender
=
models
.
BooleanField
(
default
=
False
)
...
...
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