mirror of https://github.com/snachodog/mybuddy.git
Merge pull request #74 from burkemw3/patch-1
Add dashboard sort clauses: first name and id
This commit is contained in:
commit
f8827ce647
|
@ -29,7 +29,8 @@ class Dashboard(LoginRequiredMixin, TemplateView):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(Dashboard, self).get_context_data(**kwargs)
|
||||
context['objects'] = Child.objects.all().order_by('last_name')
|
||||
context['objects'] = Child.objects.all() \
|
||||
.order_by('last_name', 'first_name', 'id')
|
||||
return context
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue