summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-17 13:31:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-17 13:31:20 +0100
commit3159c0314ec7de73ac637221017748e2a9f37d59 (patch)
treeb86d4859397a7cc56d8c1b0678c38b8cb1398674 /archaeological_operations/forms.py
parent4480edffabb942df4fcc6a91cb58e71a40c978a8 (diff)
downloadIshtar-3159c0314ec7de73ac637221017748e2a9f37d59.tar.bz2
Ishtar-3159c0314ec7de73ac637221017748e2a9f37d59.zip
Custom forms: admin form
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 841131da6..61be371d1 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -49,7 +49,7 @@ from ishtar_common import widgets
from ishtar_common.forms import FinalForm, FormSet, get_now, \
reverse_lazy, get_form_selection, TableSelect, get_data_from_formset, \
- ManageOldType
+ ManageOldType, CustomForm
from ishtar_common.forms_common import TownFormSet, SourceForm, SourceSelect, \
get_town_field
@@ -761,8 +761,10 @@ class DashboardForm(forms.Form):
return fltr
-class OperationFormGeneral(ManageOldType, forms.Form):
+class OperationFormGeneral(ManageOldType, CustomForm, forms.Form):
form_label = _(u"General")
+ form_admin_name = _(u"Operation - General")
+ form_slug = "operation-general"
file_upload = True
associated_models = {'scientist': Person,
'in_charge': Person,