diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-16 12:45:00 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-16 12:46:09 +0200 |
commit | 12e9870e2aa0659de98a9122fbc4ab16b0877449 (patch) | |
tree | 36d375089b787fbc3649ad54bb9e7e3b2b5741e0 /archaeological_context_records/wizards.py | |
parent | db5ecbb7b69ff668ca005bd9535bf595b79e649e (diff) | |
download | Ishtar-12e9870e2aa0659de98a9122fbc4ab16b0877449.tar.bz2 Ishtar-12e9870e2aa0659de98a9122fbc4ab16b0877449.zip |
✨ Context records relations: remove form from the wizard to put in a specific form
Diffstat (limited to 'archaeological_context_records/wizards.py')
-rw-r--r-- | archaeological_context_records/wizards.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/archaeological_context_records/wizards.py b/archaeological_context_records/wizards.py index e92d9587e..35b4e02b4 100644 --- a/archaeological_context_records/wizards.py +++ b/archaeological_context_records/wizards.py @@ -119,21 +119,9 @@ class RecordWizard(Wizard): else: current_object = self.get_current_object() data["context_record"] = current_object - elif step.startswith("relations") and hasattr(form, "management_form"): - data["CONTEXT_RECORDS"] = self.get_other_context_records() form = super(RecordWizard, self).get_form(step, data, files) return form - def get_other_context_records(self): - operation = self.get_current_operation() - if not operation: - return [] - q = models.ContextRecord.objects.filter(operation_id=operation.pk) - obj = self.get_current_object() - if obj and obj.pk: - q = q.exclude(pk=obj.pk) - return [(cr.pk, cr.cached_label) for cr in q.all()] - class RecordModifWizard(RecordWizard): modification = True |