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
12a2e94d
Commit
12a2e94d
authored
Feb 09, 2015
by
Daniel W Bond
Browse files
realized a view was not necessary
parent
877428d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/views.py
View file @
12a2e94d
...
...
@@ -38,20 +38,12 @@ class DetailFloor(LoginRequiredMixin, DetailView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
DetailFloor
,
self
):
# perhaps change to get the students, and then list by rooms?
context
[
'rooms'
]
=
Room
.
objects
.
filter
(
floor
=
self
.
get_object
()).
order_by
(
'-number'
)
return
context
login_url
=
'/'
# this lists students in a room
class
DetailRoom
(
LoginRequiredMixin
,
ListView
):
model
=
Room
# deleted 'DetailRoom' view-- inhabitants will be listed on the floor page
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
DetailRoom
,
self
):
# context['students'] =
return
context
login_url
=
'/'
# deleted 'updateroom' view-- that will be handled on the user's page
# deleted 'UpdateRoom' view-- that will be handled on the user's page
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