From 1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Sep 2019 00:18:29 +0200 Subject: New management of "popup" for new items -> change all form configuration --- archaeological_warehouse/forms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_warehouse/forms.py') 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} -- cgit v1.2.3