Sort training list by student names
This commit is contained in:
parent
b170c2967d
commit
ff8a61b410
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ class TrainingsByPeriodView(ListView):
|
|||
|
||||
def get_queryset(self):
|
||||
return Training.objects.select_related('student__klass', 'availability__corporation', 'availability__domain'
|
||||
).filter(availability__period__pk=self.kwargs['pk'])
|
||||
).filter(availability__period__pk=self.kwargs['pk']
|
||||
).order_by('student__last_name', 'student__first_name')
|
||||
|
||||
|
||||
class CorpContactJSONView(ListView):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue