Browse Source

Fix bug #107 (telefone e fax obrigatório)

pull/153/head
Edward Ribeiro 9 years ago
parent
commit
9fbc479eb8
  1. 8
      parlamentares/views.py

8
parlamentares/views.py

@ -248,12 +248,12 @@ class ParlamentaresForm (ModelForm):
attrs={'class': 'titulo_eleitor'})) attrs={'class': 'titulo_eleitor'}))
telefone = forms.CharField(label='Telefone', telefone = forms.CharField(label='Telefone',
required=True, required=False,
widget=forms.TextInput( widget=forms.TextInput(
attrs={'class': 'telefone'})) attrs={'class': 'telefone'}))
fax = forms.CharField(label='Fax', fax = forms.CharField(label='Fax',
required=True, required=False,
widget=forms.TextInput( widget=forms.TextInput(
attrs={'class': 'telefone'})) attrs={'class': 'telefone'}))
@ -263,12 +263,12 @@ class ParlamentaresForm (ModelForm):
attrs={'class': 'cep'})) attrs={'class': 'cep'}))
telefone_residencia = forms.CharField(label='Telefone', telefone_residencia = forms.CharField(label='Telefone',
required=True, required=False,
widget=forms.TextInput( widget=forms.TextInput(
attrs={'class': 'telefone'})) attrs={'class': 'telefone'}))
fax_residencia = forms.CharField(label='Fax', fax_residencia = forms.CharField(label='Fax',
required=True, required=False,
widget=forms.TextInput( widget=forms.TextInput(
attrs={'class': 'telefone'})) attrs={'class': 'telefone'}))

Loading…
Cancel
Save