From 1118a5b42f9e0a27cbd337b02948dfea0a9a61f8 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Tue, 1 Sep 2015 21:02:07 +0200 Subject: [PATCH] Razeni organizatoru podle jmena --- seminar/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index 37499eb4..54f6391f 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -23,7 +23,7 @@ def AktualniZadaniView(request): class CojemamOrganizatoriView(generic.ListView): model = Organizator template_name='seminar/cojemam/organizatori.html' - queryset = Organizator.objects.filter(user__is_active=True) + queryset = Organizator.objects.filter(user__is_active=True).order_by('user__first_name') def get_context_data(self, **kwargs): context = super(CojemamOrganizatoriView, self).get_context_data(**kwargs) context['aktivni'] = True