Commit 3a6101df authored by Daniel W Bond's avatar Daniel W Bond
Browse files

alphabetized buildings

parent ff77c5bc
...@@ -12,9 +12,9 @@ class ListBuildings(LoginRequiredMixin, ListView): ...@@ -12,9 +12,9 @@ class ListBuildings(LoginRequiredMixin, ListView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(ListBuildings, self).get_context_data(**kwargs) context = super(ListBuildings, self).get_context_data(**kwargs)
context['rappahannock'] = Building.objects.filter(neighbourhood='ra') context['rappahannock'] = Building.objects.filter(neighbourhood='ra').order_by('name')
context['shenandoah'] = Building.objects.filter(neighbourhood='sh') context['shenandoah'] = Building.objects.filter(neighbourhood='sh').order_by('name')
context['aquia'] = Building.objects.filter(neighbourhood='aq') context['aquia'] = Building.objects.filter(neighbourhood='aq').order_by('name')
return context return context
# building floors, other information # building floors, other information
......
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