Commit 12a2e94d authored by Daniel W Bond's avatar Daniel W Bond
Browse files

realized a view was not necessary

parent 877428d3
...@@ -38,20 +38,12 @@ class DetailFloor(LoginRequiredMixin, DetailView): ...@@ -38,20 +38,12 @@ class DetailFloor(LoginRequiredMixin, DetailView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(DetailFloor, self): 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') context['rooms'] = Room.objects.filter(floor=self.get_object()).order_by('-number')
return context return context
login_url = '/' login_url = '/'
# this lists students in a room # deleted 'DetailRoom' view-- inhabitants will be listed on the floor page
class DetailRoom(LoginRequiredMixin, ListView):
model = Room
def get_context_data(self, **kwargs): # deleted 'UpdateRoom' view-- that will be handled on the user's page
context = super(DetailRoom, self):
# context['students'] =
return context
login_url = '/'
# deleted 'updateroom' view-- that will be handled on the user's page
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment