summaryrefslogtreecommitdiff
path: root/archaeological_context_records/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/wizards.py')
-rw-r--r--archaeological_context_records/wizards.py12
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