diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index 547875e..6553911 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -94,6 +94,10 @@ class ConvenioAdmin(admin.ModelAdmin): actions = super(ConvenioAdmin, self).get_actions(request) del actions['delete_selected'] return actions + + def lookup_allowed(self, lookup, value): + return super(ConvenioAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] class EquipamentoPrevistoAdmin(admin.ModelAdmin):