summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-01 15:50:52 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 09:57:24 +0200
commit572b9047260322ed19cc9f674657b8be8d62c052 (patch)
tree0ed9392291c50980c7dbff14c9a05edc601076de /archaeological_warehouse/forms.py
parent66a376e081e335cf94ecf6fd41e5fe13a5445c57 (diff)
downloadIshtar-572b9047260322ed19cc9f674657b8be8d62c052.tar.bz2
Ishtar-572b9047260322ed19cc9f674657b8be8d62c052.zip
Adapt forms, wizards, views, urls for new management of documents (refs #4107)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 27f03e752..e13255efc 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -33,8 +33,7 @@ from bootstrap_datepicker.widgets import DatePicker
from ishtar_common.forms import name_validator, reverse_lazy, \
get_form_selection, TableSelect, ManageOldType, FinalForm, FormSet, \
CustomForm, FieldType
-from ishtar_common.forms_common import get_image_help, BaseImageFormset, \
- BaseImageForm
+from ishtar_common.forms_common import get_image_help
from archaeological_finds.forms import FindMultipleFormSelection, \
SelectFindBasketForm
@@ -161,14 +160,6 @@ class WarehouseForm(CustomForm, ManageOldType, forms.Form):
return new_item
-ImagesFormset = formset_factory(BaseImageForm, can_delete=True,
- formset=BaseImageFormset)
-ImagesFormset.file_upload = True
-ImagesFormset.form_label = _(u"Images")
-ImagesFormset.form_admin_name = _(u"Warehouse - 025 - Images")
-ImagesFormset.form_slug = "warehouse-020-images"
-
-
class WarehouseDeletionForm(FinalForm):
confirm_msg = _(u"Would you like to delete this warehouse?")
confirm_end_msg = _(u"Would you like to delete this warehouse?")