From 94f8efcdf7b1f933dc3e4ee1b10688a14fdea3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 7 Mar 2023 11:19:29 -0300 Subject: [PATCH] Corrige label e adiciona filtro por data --- sigi/apps/eventos/admin.py | 3 ++- sigi/apps/eventos/models.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sigi/apps/eventos/admin.py b/sigi/apps/eventos/admin.py index 146ec88..6036e14 100644 --- a/sigi/apps/eventos/admin.py +++ b/sigi/apps/eventos/admin.py @@ -22,7 +22,7 @@ from sigi.apps.eventos.models import ( Anexo, ) from sigi.apps.eventos.forms import EventoAdminForm -from sigi.apps.utils.filters import EmptyFilter +from sigi.apps.utils.filters import EmptyFilter, DateRangeFilter from sigi.apps.utils.mixins import CartExportMixin, ValueLabeledResource @@ -163,6 +163,7 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): ("num_processo", EmptyFilter), "tipo_evento", "tipo_evento__categoria", + ("data_inicio", DateRangeFilter), "virtual", "municipio__uf", "solicitante", diff --git a/sigi/apps/eventos/models.py b/sigi/apps/eventos/models.py index 1557e20..c66d780 100644 --- a/sigi/apps/eventos/models.py +++ b/sigi/apps/eventos/models.py @@ -29,7 +29,7 @@ class TipoEvento(models.Model): nome = models.CharField(_("Nome"), max_length=100) categoria = models.CharField( - _("Categoaria"), max_length=1, choices=CATEGORIA_CHOICES + _("Categoria"), max_length=1, choices=CATEGORIA_CHOICES ) casa_solicita = models.BooleanField(_("casa pode solicitar"), default=False)