diff options
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 |
commit | 373a9d9531f2cb7ef954f7af14baaea33b74bdff (patch) | |
tree | b86d4859397a7cc56d8c1b0678c38b8cb1398674 /archaeological_operations/forms.py | |
parent | ddcbfb661def13467815da18d90ace9a3c30197a (diff) | |
download | Ishtar-373a9d9531f2cb7ef954f7af14baaea33b74bdff.tar.bz2 Ishtar-373a9d9531f2cb7ef954f7af14baaea33b74bdff.zip |
Custom forms: admin form
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 6 |
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, |