Browse Source

Razeni organizatoru podle jmena

remotes/origin/vysl deploy-prod-2015-09-01-21-07-xlfd
Bc. Petr Pecha 9 years ago
parent
commit
1118a5b42f
  1. 2
      seminar/views.py

2
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

Loading…
Cancel
Save