summaryrefslogtreecommitdiff
path: root/archaeological_files/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2013-04-11 16:18:12 +0000
committerÉtienne Loks <etienne.loks@proxience.com>2013-04-11 16:18:12 +0000
commit5a8f66d8349b00812a4a8b55317688a7832a10a3 (patch)
tree1bdc68eac5c81c5bfafe287a659266ee8ad33d69 /archaeological_files/forms.py
parent176b0ebae664c68a2c25edf2823aad589953b2bc (diff)
parent135a2370cfef4f3faea88cc6a1ab3f1eb797013d (diff)
downloadIshtar-5a8f66d8349b00812a4a8b55317688a7832a10a3.tar.bz2
Ishtar-5a8f66d8349b00812a4a8b55317688a7832a10a3.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
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"),