Skip to content

Commit

Permalink
Sort arches in web view
Browse files Browse the repository at this point in the history
Up to now, the list was sorted based on the order in which arches were
created. With manually added ones, the order was not correct.

JIRA: PDC-1107
  • Loading branch information
lubomir committed Oct 19, 2015
1 parent 181b5bf commit fd4d3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdc/apps/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class ArchListView(ListView):
model = Arch
queryset = Arch.objects.all()
queryset = Arch.objects.all().order_by('name')
allow_empty = True
template_name = "arch_list.html"
context_object_name = "arch_list"
Expand Down

0 comments on commit fd4d3c7

Please sign in to comment.