From 62fb8d013c36ae63b7812a3366a9d51b7939fcaf Mon Sep 17 00:00:00 2001 From: Lude Ribeiro Date: Thu, 26 Aug 2021 09:36:49 -0300 Subject: [PATCH] Fix #72 --- sigi/apps/convenios/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index 4a46d57..55b5841 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -73,7 +73,7 @@ class ConvenioAdmin(BaseModelAdmin): 'casa_legislativa__tipo', 'conveniada','equipada', 'casa_legislativa__municipio__uf',) #date_hierarchy = 'data_adesao' - ordering = ('casa_legislativa__tipo__sigla', 'casa_legislativa__municipio__uf', 'casa_legislativa') + ordering = ('casa_legislativa', '-data_retorno_assinatura') raw_id_fields = ('casa_legislativa',) get_queryset = queryset_ascii search_fields = ('id', 'search_text', 'casa_legislativa__sigla',