diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-13 16:25:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-13 16:25:20 +0100 |
commit | f0efbc44b9dfbd648c17b4d82937e725431cdf5b (patch) | |
tree | be82ba25f71fb96e3ab5a72bb65b7596629086f0 /archaeological_operations/forms.py | |
parent | 749a5fa0444d66c8a3656edae9f0e6b6f12b9870 (diff) | |
download | Ishtar-f0efbc44b9dfbd648c17b4d82937e725431cdf5b.tar.bz2 Ishtar-f0efbc44b9dfbd648c17b4d82937e725431cdf5b.zip |
Operation: add a location field (refs #3508)
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index f9f1095be..27ab4670a 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -465,6 +465,8 @@ class OperationSelect(TableSelect): label=_(u"Department"), choices=[]) common_name = forms.CharField(label=_(u"Name"), max_length=30) + address = forms.CharField(label=_(u"Address / Locality"), + max_length=100) operation_type = forms.ChoiceField(label=_(u"Operation type"), choices=[]) end_date = forms.NullBooleanField(label=_(u"Is open?")) @@ -746,7 +748,9 @@ class OperationFormGeneral(ManageOldType, forms.Form): widget=OAWidget, required=False) common_name = forms.CharField(label=_(u"Generic name"), required=False, - max_length=120, widget=forms.Textarea) + max_length=500, widget=forms.Textarea) + address = forms.CharField(label=_(u"Address / Locality"), required=False, + max_length=500, widget=forms.Textarea) operation_type = forms.ChoiceField(label=_(u"Operation type"), choices=[]) year = forms.IntegerField(label=_(u"Year"), |