Merge pull request #74 from burkemw3/patch-1

Add dashboard sort clauses: first name and id
This commit is contained in:
Christopher Charbonneau Wells 2019-07-08 13:19:45 -07:00 committed by GitHub
commit f8827ce647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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