summaryrefslogtreecommitdiff
path: root/archaeological_files/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r--archaeological_files/forms.py3
1 files changed, 2 insertions, 1 deletions
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 <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# 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"),