From 5b07f6cb31a67a38083d32ec9c302c88ca1f7512 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_finds/forms_treatments.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_finds/forms_treatments.py') diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index ba3e88e47..08744ed0b 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -89,6 +89,7 @@ class BaseTreatmentForm(CustomForm, ManageOldType): form_admin_name = _(u"Treatment - 020 - General") form_slug = "treatment-020-general" base_models = ['treatment_type'] + extra_form_modals = ["container", "warehouse", "organization", "person"] associated_models = {'treatment_type': models.TreatmentType, 'person': Person, 'location': Warehouse, @@ -677,6 +678,7 @@ class TreatmentFileForm(ManageOldType): 'applicant': Person, 'applicant_organisation': Organization, 'associated_basket': models.FindBasket } + extra_form_modals = ["person", "organization"] need_user_for_initialization = True name = forms.CharField(label=_(u"Name"), -- cgit v1.2.3