From 9cbbfeaa9560631d4edfdaf3e1cc2f13c35044d5 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Tue, 26 May 2015 17:04:34 +0200 Subject: [PATCH] Fix bug: poradi v exportu --- seminar/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/export.py b/seminar/export.py index a6ca7ff5..ce52220a 100644 --- a/seminar/export.py +++ b/seminar/export.py @@ -36,7 +36,7 @@ class ExportRocnikView(generic.DetailView): 'points', 'rank',] radky = [] - vysledky = VysledkyKCislu.objects.filter(cislo = cislo).select_related("resitel").all() + vysledky = VysledkyKCislu.objects.filter(cislo = cislo).select_related("resitel").order_by('-body_celkem').all() posledni_body = 100000 posledni_poradi = 0