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
d1145ef7
Commit
d1145ef7
authored
Jan 28, 2016
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added on_campus boolean to student model, defaults to true
parent
2723f74d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
roomlist/accounts/models.py
roomlist/accounts/models.py
+2
-1
No files found.
roomlist/accounts/models.py
View file @
d1145ef7
...
...
@@ -126,11 +126,12 @@ class Student(TimeStampedModel):
)
# selectmultiple in forms
gender
=
MultiSelectField
(
max_length
=
25
,
choices
=
GENDER_CHOICES
,
blank
=
True
)
gender
=
MultiSelectField
(
max_length
=
50
,
choices
=
GENDER_CHOICES
,
blank
=
True
)
show_gender
=
models
.
BooleanField
(
default
=
False
)
privacy
=
models
.
CharField
(
max_length
=
100
,
choices
=
PRIVACY_CHOICES
,
default
=
FLOOR
)
on_campus
=
models
.
BooleanField
(
default
=
True
)
room
=
models
.
ForeignKey
(
Room
,
null
=
True
,
blank
=
True
)
major
=
models
.
ForeignKey
(
'Major'
,
related_name
=
'major'
,
null
=
True
,
blank
=
True
)
...
...
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