Commit 6eb6b3c7 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

removed requiring authentication from DetailBuilding; whoops, looks like...

removed requiring authentication from DetailBuilding; whoops, looks like DetailFloor and DetailRoom don't direct to CAS...
parent 60234886
...@@ -26,14 +26,12 @@ class ListBuildings(ListView): ...@@ -26,14 +26,12 @@ class ListBuildings(ListView):
# building floors, other information # building floors, other information
class DetailBuilding(LoginRequiredMixin, DetailView): class DetailBuilding(DetailView):
model = Building model = Building
slug_field = 'slug__iexact' slug_field = 'slug__iexact'
context_object_name = 'building' context_object_name = 'building'
template_name = 'detail_building.html' template_name = 'detail_building.html'
login_url = 'login'
def get_object(self): def get_object(self):
url_parts = self.request.get_full_path().split('/') url_parts = self.request.get_full_path().split('/')
# [u'', u'housing', u'building',] # [u'', u'housing', u'building',]
...@@ -53,6 +51,8 @@ class DetailFloor(LoginRequiredMixin, DetailView): ...@@ -53,6 +51,8 @@ class DetailFloor(LoginRequiredMixin, DetailView):
context_object_name = 'floor' context_object_name = 'floor'
template_name = 'detail_floor.html' template_name = 'detail_floor.html'
login_url = 'login'
def get_object(self): def get_object(self):
url_parts = self.request.get_full_path().split('/') url_parts = self.request.get_full_path().split('/')
# [u'', u'housing', u'building', u'floor', ] # [u'', u'housing', u'building', u'floor', ]
...@@ -79,6 +79,8 @@ class DetailRoom(LoginRequiredMixin, DetailView): ...@@ -79,6 +79,8 @@ class DetailRoom(LoginRequiredMixin, DetailView):
context_object_name = 'room' context_object_name = 'room'
template_name = 'detail_room.html' template_name = 'detail_room.html'
login_url = 'login'
def get_object(self): def get_object(self):
url_parts = self.request.get_full_path().split('/') url_parts = self.request.get_full_path().split('/')
# [u'', u'housing', u'building', u'floor', u'room', ] # [u'', u'housing', u'building', u'floor', u'room', ]
......
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