Commit 89866521df082331e8d9d75167774b0fb45a8cff
1 parent
2a43053a
Exists in
master
and in
13 other branches
Adding order_by stmt to latests on thread dashboard - closes #136
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/super_archives/views.py
... | ... | @@ -126,7 +126,9 @@ class ThreadDashboardView(View): |
126 | 126 | for list_ in MailingList.objects.order_by('name'): |
127 | 127 | context['lists'].append(( |
128 | 128 | list_.name, |
129 | - list_.thread_set.filter(spam=False)[:MAX], | |
129 | + list_.thread_set.filter(spam=False).order_by( | |
130 | + '-latest_message__received_time' | |
131 | + )[:MAX], | |
130 | 132 | SearchQuerySet().filter(type='thread', tag=list_.name)[:MAX], |
131 | 133 | )) |
132 | 134 | ... | ... |