From 8d032196a53f50d7ed8a80e0a787ddf908fa58ca Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 29 May 2017 13:48:50 -0300 Subject: [PATCH] Fix #1124 --- sapl/materia/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 66770718d..58ffe509f 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1614,6 +1614,8 @@ class DocumentoAcessorioEmLoteView(PermissionRequiredMixin, FilterView): qr = self.request.GET.copy() context['tipos_docs'] = TipoDocumento.objects.all() + context['object_list'] = context['object_list'].order_by( + 'ano', 'numero') context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else '' return context