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
d1145ef7
Commit
d1145ef7
authored
Jan 28, 2016
by
Daniel W Bond
Browse files
added on_campus boolean to student model, defaults to true
parent
2723f74d
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
d1145ef7
...
...
@@ -126,11 +126,12 @@ class Student(TimeStampedModel):
)
# selectmultiple in forms
gender
=
MultiSelectField
(
max_length
=
2
5
,
choices
=
GENDER_CHOICES
,
blank
=
True
)
gender
=
MultiSelectField
(
max_length
=
5
0
,
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