@ -94,4 +94,5 @@ class EventoAdmin(admin.ModelAdmin):
def lookup_allowed(self, lookup, value):
return (super(EventoAdmin, self).lookup_allowed(lookup, value) or
lookup in ['tipo_evento__nome__exact',])
lookup in ['tipo_evento__nome__exact',
'tipo_evento__nome__contains'])
@ -47,8 +47,8 @@ main_menu:
children:
- title: Eventos
url: eventos/evento/
# - title: Oficinas
# url: eventos/evento/?tipo_evento__nome__exact=Oficina
- title: Oficinas
url: eventos/evento/?tipo_evento__nome__contains=Oficina
- title: Visitas Interlegis
url: eventos/evento/?tipo_evento__nome__exact=Visita Interlegis
- title: Calendário mensal