From b2c46e8370012bb2b38bc1b0da491277e253360f Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 13 Jun 2018 15:11:45 -0300 Subject: [PATCH] HOT-FIX: ordena atas por data (desc) --- sapl/base/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 8114a0137..e60ffe072 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -529,7 +529,7 @@ class RelatorioAtasFilterSet(django_filters.FilterSet): def qs(self): parent = super(RelatorioAtasFilterSet, self).qs return parent.distinct().prefetch_related('tipo').exclude( - upload_ata='').order_by('-legislatura', 'tipo', 'numero') + upload_ata='').order_by('-data_inicio', 'tipo', 'numero') def __init__(self, *args, **kwargs): super(RelatorioAtasFilterSet, self).__init__(