Browse Source

HOT-FIX - Mudando choices de ano no NormaJuridicaForm (#2817)

pull/2824/head
Ulysses Lara 6 years ago
committed by Cesar Carvalho
parent
commit
bec274cbe8
  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.settings import MAX_DOC_UPLOAD_SIZE
from sapl.utils import NormaPesquisaOrderingFilter, RangeWidgetOverride, \
choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin
choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, RANGE_ANOS
from .models import (AnexoNormaJuridica, AssuntoNorma, NormaJuridica, NormaRelacionada,
TipoNormaJuridica, AutoriaNorma)
@ -106,7 +106,7 @@ class NormaJuridicaForm(FileFieldCheckMixin, ModelForm):
ano_materia = forms.ChoiceField(
label='Ano Matéria',
required=False,
choices=choice_anos_com_materias,
choices=RANGE_ANOS,
widget=forms.Select(attrs={'autocomplete': 'off'})
)

Loading…
Cancel
Save