Browse Source

HOT-FIX: coloca opção vazia em ano de matéria

pull/2766/head
Edward Ribeiro 6 years ago
parent
commit
c601228cbb
  1. 4
      sapl/norma/forms.py

4
sapl/norma/forms.py

@ -18,7 +18,7 @@ from sapl.materia.forms import choice_anos_com_materias
from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa
from sapl.settings import MAX_DOC_UPLOAD_SIZE from sapl.settings import MAX_DOC_UPLOAD_SIZE
from sapl.utils import NormaPesquisaOrderingFilter, RangeWidgetOverride, \ from sapl.utils import NormaPesquisaOrderingFilter, RangeWidgetOverride, \
choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, RANGE_ANOS choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, ANO_CHOICES
from .models import (AnexoNormaJuridica, AssuntoNorma, NormaJuridica, NormaRelacionada, from .models import (AnexoNormaJuridica, AssuntoNorma, NormaJuridica, NormaRelacionada,
TipoNormaJuridica, AutoriaNorma) TipoNormaJuridica, AutoriaNorma)
@ -106,7 +106,7 @@ class NormaJuridicaForm(FileFieldCheckMixin, ModelForm):
ano_materia = forms.ChoiceField( ano_materia = forms.ChoiceField(
label='Ano Matéria', label='Ano Matéria',
required=False, required=False,
choices=RANGE_ANOS, choices=ANO_CHOICES,
widget=forms.Select(attrs={'autocomplete': 'off'}) widget=forms.Select(attrs={'autocomplete': 'off'})
) )

Loading…
Cancel
Save