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
64906efc
Commit
64906efc
authored
Oct 16, 2016
by
Daniel W Bond
Browse files
change reference to foreignkey to make the field passed to context actually mean what it's named
parent
2cb0eea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/views.py
View file @
64906efc
...
...
@@ -132,6 +132,6 @@ class DetailRoom(LoginRequiredMixin, DetailView):
students
=
Student
.
objects
.
visible
(
requesting_student
,
self
.
get_object
())
context
[
'students'
]
=
shadowbanning
(
requesting_student
,
students
)
context
[
'notOnFloor'
]
=
not
(
requesting_student
in
self
.
get_object
())
context
[
'notInBuilding'
]
=
not
(
requesting_student
in
self
.
get_object
().
building
)
context
[
'notOnFloor'
]
=
not
(
requesting_student
in
self
.
get_object
()
.
floor
)
context
[
'notInBuilding'
]
=
not
(
requesting_student
in
self
.
get_object
().
floor
.
building
)
return
context
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