From e20dae3750b363cffcf009560de066d5723fc1a9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 25 Feb 2021 12:06:36 +0100 Subject: Generic extra forms modals for all pages (refs #5052) --- archaeological_finds/forms.py | 2 -- archaeological_finds/forms_treatments.py | 2 -- 2 files changed, 4 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index dad663624..099623f33 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -296,7 +296,6 @@ class FindForm(BasicFindForm): file_upload = True form_label = _("Find") form_admin_name = _("Find - 020 - General") - extra_form_modals = ["warehouse"] form_slug = "find-020-general" base_models = ['get_first_base_find'] + BasicFindForm.base_models associated_models = BasicFindForm.associated_models.copy() @@ -1363,7 +1362,6 @@ class FindFormSelectionWarehouseModule(FindFormSelection): gallery=True, map=True, source_full=reverse_lazy('get-find-full')), validators=[valid_id(models.Find)]) - extra_form_modals = ["container", "warehouse"] class FindFormMultiSelectionWarehouseModule(FindFormMultiSelection): diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index 7fc0d877c..6c22b30ee 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -127,7 +127,6 @@ class BaseTreatmentForm(CustomForm, ManageOldType): form_admin_name = _("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, 'scientific_monitoring_manager': Person, @@ -763,7 +762,6 @@ class TreatmentFileForm(CustomForm, ManageOldType): 'applicant': Person, 'applicant_organisation': Organization, 'associated_basket': models.FindBasket } - extra_form_modals = ["person", "organization"] need_user_for_initialization = True name = forms.CharField(label=_("Name"), -- cgit v1.2.3