Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
6ea1cc24
Commit
6ea1cc24
authored
May 25, 2017
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added leadership options to student model
parent
6b658a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
roomlist/accounts/models.py
roomlist/accounts/models.py
+12
-0
No files found.
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