Razeni organizatoru podle jmena
This commit is contained in:
parent
5571f1be3c
commit
1118a5b42f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue