Razeni organizatoru podle jmena

This commit is contained in:
Bc. Petr Pecha 2015-09-01 21:02:07 +02:00
parent 5571f1be3c
commit 1118a5b42f

View file

@ -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