From 2298cf58af47d7b8a5bee38555422a7d181537f8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 26 May 2014 23:27:27 +0200 Subject: Add max lenght to archaeological file names --- archaeological_files/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_files/forms.py') diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index f155f4261..50d67027c 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -138,7 +138,7 @@ class FileFormGeneral(forms.Form): widget=forms.HiddenInput, required=False) internal_reference = forms.CharField(label=_(u"Other reference"), max_length=60, required=False) - name = forms.CharField(label=_(u"Name"), required=False) + name = forms.CharField(label=_(u"Name"), required=False, max_length=100) creation_date = forms.DateField(label=_(u"Creation date"), initial=get_now, widget=widgets.JQueryDate) file_type = forms.ChoiceField(label=_("File type"), choices=[]) -- cgit v1.2.3