diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-09 18:02:41 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 8bb49c9c9fae93536dcfd340e4631fc34a44df8a (patch) | |
tree | 64334c9307509607b65394e83ae0654f790f98cb /archaeological_finds/forms_treatments.py | |
parent | 1dcb2fb44584117220b87500188f2539e3a98c14 (diff) | |
download | Ishtar-8bb49c9c9fae93536dcfd340e4631fc34a44df8a.tar.bz2 Ishtar-8bb49c9c9fae93536dcfd340e4631fc34a44df8a.zip |
Container: collection -> responsibility. Deactivate collection fot finds
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r-- | archaeological_finds/forms_treatments.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index ad4966e51..ac4420ce8 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -412,10 +412,11 @@ class QAFindTreatmentForm(IshtarForm): ('current', _("the current container")), ) ) - collection = forms.BooleanField( - label=_("Associate to the collection of the container"), required=False, - widget=widgets.CheckboxInput - ) + #collection = forms.BooleanField( + # label=_("Associate to the collection of the container"), + # required=False, + # widget=widgets.CheckboxInput + #) create_treatment = forms.BooleanField( label=_("Create a treatment"), required=False, widget=widgets.CheckboxInput @@ -531,14 +532,14 @@ class QAFindTreatmentForm(IshtarForm): container_attrs.append('container_ref') if container_to_change in ('current', 'current-and-reference'): container_attrs.append('container') - collection = None - if self.cleaned_data.get("collection"): - collection = container.location_id + #collection = None + #if self.cleaned_data.get("collection"): + # collection = container.location_id for find in items: changed = False - if collection and find.collection_id != collection: - find.collection_id = collection - changed = True + #if collection and find.collection_id != collection: + # find.collection_id = collection + # changed = True for container_attr in container_attrs: if getattr(find, container_attr) == container: continue |