Commit a8099b57 authored by Daniel W Bond's avatar Daniel W Bond

ordering filter fixed

parent 7103c53a
......@@ -25,7 +25,7 @@ class DetailBuilding(LoginRequiredMixin, DetailView):
def get_context_data(self, **kwargs):
context = super(DetailBuilding, self).get_context_data(**kwargs)
context['floors'] = Floor.objects.filter(building__name=''+self.get_object().name).order_by('-number')
context['floors'] = Floor.objects.filter(building__name=''+self.get_object().name).order_by('number')
return context
login_url = '/'
......
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