diff --git a/materia/forms.py b/materia/forms.py index 484c710de..ec7d9a385 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -90,7 +90,7 @@ class AcompanhamentoMateriaForm(ModelForm): row1.append( Column(form_actions(save_label='Cadastrar'), css_class='col-md-2') - ) + ) self.helper = FormHelper() self.helper.layout = Layout( @@ -150,7 +150,7 @@ class RelatoriaForm(ModelForm): ] widgets = { 'data_designacao_relator': forms.DateInput(attrs={ - 'class': 'dateinput'}), + 'class': 'dateinput'}), 'data_destituicao_relator': forms.DateInput(attrs={ 'class': 'dateinput'}), } @@ -172,11 +172,11 @@ class TramitacaoForm(ModelForm): widgets = { 'data_tramitacao': forms.DateInput(attrs={ - 'class': 'dateinput'}), + 'class': 'dateinput'}), 'data_encaminhamento': forms.DateInput(attrs={ - 'class': 'dateinput'}), + 'class': 'dateinput'}), 'data_fim_prazo': forms.DateInput(attrs={ - 'class': 'dateinput'}), + 'class': 'dateinput'}), } def __init__(self, *args, **kwargs): diff --git a/protocoloadm/forms.py b/protocoloadm/forms.py index cc7a34620..4f9f243e3 100644 --- a/protocoloadm/forms.py +++ b/protocoloadm/forms.py @@ -128,11 +128,10 @@ class AnularProcoloAdmForm(ModelForm): get_field('ano').verbose_name, choices=RANGE_ANOS, widget=forms.Select(attrs={'class': 'selector'})) - justificativa_anulacao = forms.CharField(required=True, - label=Protocolo._meta. - get_field('justificativa_anulacao' - ).verbose_name, - widget=forms.Textarea) + justificativa_anulacao = forms.CharField( + required=True, + label=Protocolo._meta.get_field('justificativa_anulacao').verbose_name, + widget=forms.Textarea) def clean(self): cleaned_data = super(AnularProcoloAdmForm, self).clean() @@ -154,7 +153,7 @@ class AnularProcoloAdmForm(ModelForm): % (numero, ano)) except ObjectDoesNotExist: raise forms.ValidationError( - _("Protocolo %s/%s não existe" % (numero, ano))) + _("Protocolo %s/%s não existe" % (numero, ano))) class Meta: model = Protocolo