summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-04 11:26:34 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-04 11:26:34 +0100
commit0daffe7ed98a0f5951c788d905c739db0304e14a (patch)
tree27abd97a781c3944ec67f62249a215b2b5d37da4 /archaeological_files_pdl/forms.py
parent6a8cb4b4d6f2a265e2afbd7a9e01c107523601d7 (diff)
downloadIshtar-0daffe7ed98a0f5951c788d905c739db0304e14a.tar.bz2
Ishtar-0daffe7ed98a0f5951c788d905c739db0304e14a.zip
Files: add project name field for research archaeology (refs #3345)
Diffstat (limited to 'archaeological_files_pdl/forms.py')
-rw-r--r--archaeological_files_pdl/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py
index cf241aa18..3b800dc8a 100644
--- a/archaeological_files_pdl/forms.py
+++ b/archaeological_files_pdl/forms.py
@@ -116,6 +116,8 @@ class FileFormResearchAddress(forms.Form):
form_label = _(u"Address")
base_models = ['town', 'department']
associated_models = {'town': Town, 'department': Department}
+ name = forms.CharField(label=_(u"Project name"), required=False,
+ max_length=100)
town = widgets.MultipleAutocompleteField(
model=Town, label=_("Towns"), required=False)
department = widgets.MultipleAutocompleteField(