summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 00:18:29 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 00:18:29 +0200
commit1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4 (patch)
tree3f239121db47139228c5b6d2cc4b95fb8d9533ef /archaeological_warehouse/forms.py
parent79ecf7ad94273476e4f0bc4c0351e6a6dbde090e (diff)
downloadIshtar-1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4.tar.bz2
Ishtar-1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4.zip
New management of "popup" for new items -> change all form configuration
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 5a558aa45..facc94467 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -143,6 +143,7 @@ class WarehouseForm(CustomForm, ManageOldType, forms.Form):
form_label = _(u"Warehouse")
form_admin_name = _(u"Warehouse - 010 - General")
form_slug = "warehouse-010-general"
+ extra_form_modals = ["organization", "person"]
associated_models = {
'warehouse_type': models.WarehouseType,
'person_in_charge': Person,
@@ -259,6 +260,7 @@ class ContainerForm(CustomForm, ManageOldType, forms.Form):
form_admin_name = _(u"Container - 010 - General")
form_slug = "container-010-general"
file_upload = True
+ extra_form_modals = ["warehouse", "organization", "person"]
associated_models = {'container_type': models.ContainerType,
'location': models.Warehouse,
'responsible': models.Warehouse}