Commit 880c157a authored by Jason D Yeomans's avatar Jason D Yeomans
Browse files

Fixed detailBuilding context names

parent 11739410
...@@ -13,7 +13,7 @@ class ListBuildings(LoginRequiredMixin, ListView): ...@@ -13,7 +13,7 @@ class ListBuildings(LoginRequiredMixin, ListView):
# building floors, other information # building floors, other information
class DetailBuilding(LoginRequiredMixin, DetailView): class DetailBuilding(LoginRequiredMixin, DetailView):
model = Building model = Building
context_object_name = 'building_detail' context_object_name = 'building'
template_name='detailBuilding.html' template_name='detailBuilding.html'
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
......
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