From f7226882bb2db460477eb4aa94e25439c82a6754 Mon Sep 17 00:00:00 2001 From: joao Date: Tue, 30 Aug 2022 21:04:25 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20Corrige=20bug=20de=20ordena=C3=A7=C3=A3o?= =?UTF-8?q?=20na=20view=20de=20correspondencias=20dentro=20de=20sess=C3=A3?= =?UTF-8?q?o/expediente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 934ec244d..97ec4be36 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -5098,7 +5098,7 @@ class CorrespondenciaCrud(MasterDetailCrud): public = [RP_LIST, RP_DETAIL] class BaseMixin(MasterDetailCrud.BaseMixin): - list_field_names = [('ordem_tipo'), + list_field_names = ['numero_ordem', ('documento__data', 'documento__interessado'), 'documento'] def get_context_data(self, **kwargs): @@ -5139,10 +5139,10 @@ class CorrespondenciaCrud(MasterDetailCrud): return qs - def hook_header_ordem_tipo(self, *args, **kwargs): + def hook_header_numero_ordem(self, *args, **kwargs): return force_text(_('Ordem / Tipo')) if not self.request.user.is_anonymous else force_text(_('Tipo')) - def hook_ordem_tipo(self, obj, ss, url): + def hook_numero_ordem(self, obj, ss, url): if not self.request.user.is_anonymous: return f'{obj.numero_ordem} - {obj.get_tipo_display()}', url else: