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)