Sort kaehmys in the correct order

This commit is contained in:
Jan Tuomi
2017-10-18 11:16:20 +03:00
parent 89bb68d222
commit cd94c0d0f4
7 changed files with 164 additions and 75 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ def ohlhafv_list(request, *args, **kwargs):
def kaehmy_list_view(request, *args, **kwargs):
"""Kaehmy application list"""
applications = KaehmyForm.objects.all()
applications = KaehmyForm.objects.order_by('-timestamp')
context = {
'applications': applications,