add max_length parameter to email, first_name and last_name fields of the registration form

This commit is contained in:
Benjamin Dauvergne 2015-12-05 18:11:38 +01:00
parent 2d239e94c9
commit 39d8182d6b
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ from appli_project.appli_socle import views as socle_views
class InscriptionForm(FormulaireAvecRelaie):
email = forms.EmailField(label=_(u'Votre email'))
first_name = forms.CharField(label=_(u'Prénom'))
last_name = forms.CharField(label=_(u'Nom'))
email = forms.EmailField(label=_(u'Votre email'), max_length=75)
first_name = forms.CharField(label=_(u'Prénom'), max_length=30)
last_name = forms.CharField(label=_(u'Nom'), max_length=30)
address = forms.CharField(label=_(u'Adresse personnelle'),
widget=forms.Textarea)
phone = forms.CharField(max_length=20,