From b8df763695252dd9c6ba7e98ca7b23991f77aea1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 11 Apr 2013 18:16:49 +0200 Subject: Add a name to archaelogical files (closes #628) --- archaeological_files/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_files/forms.py') diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index ea12c984c..67f00c8d8 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2012 Étienne Loks +# Copyright (C) 2010-2013 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -99,6 +99,7 @@ class FileFormGeneral(forms.Form): internal_reference = forms.CharField(label=_(u"Internal reference"), max_length=60, validators=[is_unique(models.File, 'internal_reference')]) + name = forms.CharField(label=_(u"Name"), required=False) creation_date = forms.DateField(label=_(u"Creation date"), initial=get_now, widget=widgets.JQueryDate) file_type = forms.ChoiceField(label=_("File type"), -- cgit v1.2.3