Browse Source

HOT-FIX: corrige carga de Content Type Choice

pull/3623/head
LeandroJatai 2 years ago
parent
commit
ed7b1d4ee3
  1. 3
      sapl/materia/forms.py

3
sapl/materia/forms.py

@ -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__)

Loading…
Cancel
Save