summaryrefslogtreecommitdiff
path: root/archaeological_finds
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_finds
parent79ecf7ad94273476e4f0bc4c0351e6a6dbde090e (diff)
downloadIshtar-1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4.tar.bz2
Ishtar-1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4.zip
New management of "popup" for new items -> change all form configuration
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/forms.py1
-rw-r--r--archaeological_finds/forms_treatments.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index b0e90eda0..a333033c6 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -1276,6 +1276,7 @@ class FindFormSelectionWarehouseModule(FindFormSelection):
gallery=True, map=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_id(models.Find)])
+ extra_form_modals = ["warehouse", "container"]
class MultipleFindFormSelection(forms.Form):
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"),