From 7fb73da84baeffd5aa4ddff954c262eae7557b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 7 Feb 2024 08:53:51 -0300 Subject: [PATCH] =?UTF-8?q?FIltrar=20conjuntos=20de=20=C3=B3rg=C3=A3os=20p?= =?UTF-8?q?or=20tipo.=20Gertik=20#175318?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/admin.py | 1 + sigi/menu_conf.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index 7c00019..9840379 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -512,6 +512,7 @@ class OrgaoAdmin(AsciifyQParameter, CartExportReportMixin, admin.ModelAdmin): ) or lookup in [ "tipo__legislativo__exact", "tipo__sigla__exact", + "tipo__sigla__in", "municipio__uf__codigo_ibge__exact", "convenio__projeto__id__exact", ] diff --git a/sigi/menu_conf.yaml b/sigi/menu_conf.yaml index 132184c..f2435f2 100644 --- a/sigi/menu_conf.yaml +++ b/sigi/menu_conf.yaml @@ -40,6 +40,18 @@ main_menu: - title: Demais órgãos view_name: admin:casas_orgao_changelist querystr: tipo__legislativo__exact=0 + - title: Câmaras, assembleias, Escolas + view_name: admin:casas_orgao_changelist + querystr: tipo__sigla__in=CM,AL,EL + - title: Câmaras, Assembleias + view_name: admin:casas_orgao_changelist + querystr: tipo__sigla__in=CM,AL + - title: Câmaras, Escolas + view_name: admin:casas_orgao_changelist + querystr: tipo__sigla__in=CM,EL + - title: Assembleias, Escolas + view_name: admin:casas_orgao_changelist + querystr: tipo__sigla__in=AL,EL - title: Gerência Interlegis icon: people children: