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
4e45f236
Commit
4e45f236
authored
Nov 22, 2014
by
Daniel W Bond
Browse files
added comments for tba updateviews
parent
65ed4e15
Changes
1
Show whitespace changes
Inline
Side-by-side
roomlist/housing/views.py
View file @
4e45f236
...
...
@@ -9,6 +9,7 @@ from braces.views import LoginRequiredMixin
from
django.views.generic
import
DetailView
,
ListView
,
CreateView
,
UpdateView
,
DeleteView
from
housing.models
import
Building
,
Room
,
Student
# a list of neighborhoods and their buildings
class
ListBuildings
(
LoginRequiredMixin
,
ListView
):
model
=
Building
...
...
@@ -34,6 +35,12 @@ class DetailStudent(LoginRequiredMixin, DetailStudent):
model
=
Student
login_url
=
'/'
# update a student
# update a room
# update a building
def
index
(
request
):
template
=
loader
.
get_template
(
'index.html'
)
context
=
RequestContext
(
request
,
{
...
...
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