Ensure todolists are consistently sorted
This is for the public view page; we had no order_by() call so lists could be displayed in seemingly random order. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
82947873d6
commit
ca4106a7c0
@ -219,7 +219,8 @@ def send_todolist_emails(todo_list, new_packages):
|
||||
|
||||
|
||||
def public_list(request):
|
||||
todo_lists = Todolist.objects.incomplete().defer('raw')
|
||||
todo_lists = Todolist.objects.incomplete().defer(
|
||||
'raw').order_by('-created')
|
||||
# total hackjob, but it makes this a lot less query-intensive.
|
||||
all_pkgs = [tp for tl in todo_lists for tp in tl.packages()]
|
||||
attach_maintainers(all_pkgs)
|
||||
|
Loading…
Reference in New Issue
Block a user