@ -1490,6 +1490,7 @@ class TramitacaoEmLoteFilterSet(django_filters.FilterSet):
class TipoProposicaoForm(ModelForm):
try:
content_types_choices = [
(
f'{ct.app_label}/{ct.model}',
@ -1499,6 +1500,8 @@ class TipoProposicaoForm(ModelForm):
*models_with_gr_for_model(TipoProposicao)
).items()
]
except:
content_types_choices = []
logger = logging.getLogger(__name__)