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
3e5794af
Commit
3e5794af
authored
Jun 20, 2017
by
Daniel W Bond
Browse files
added boolean field to student model to be able to support preventing users from using this service
parent
39556550
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
3e5794af
...
...
@@ -179,6 +179,9 @@ class Student(TimeStampedModel):
privacy
=
models
.
CharField
(
max_length
=
100
,
choices
=
PRIVACY_CHOICES
,
default
=
FLOOR
)
blocked_kids
=
models
.
ManyToManyField
(
"self"
,
blank
=
True
)
# to prevent student from accessing any page of the site
blocked
=
models
.
BooleanField
(
default
=
False
)
on_campus
=
models
.
BooleanField
(
default
=
True
)
room
=
models
.
ForeignKey
(
Room
,
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