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.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_context_records/wizards.py b/archaeological_context_records/wizards.py
index f0f11a1f3..c880f2a4f 100644
--- a/archaeological_context_records/wizards.py
+++ b/archaeological_context_records/wizards.py
@@ -22,7 +22,7 @@ from django.utils.translation import ugettext_lazy as _
from . import models
from ishtar_common.forms import reverse_lazy
-from ishtar_common.wizards import Wizard, DeletionWizard, SearchWizard
+from ishtar_common.wizards import Wizard, MultipleDeletionWizard, SearchWizard
class RecordSearch(SearchWizard):
@@ -34,6 +34,7 @@ class RecordWizard(Wizard):
edit = False
wizard_done_window = reverse_lazy('show-contextrecord')
relations_step_key = 'relations'
+ redirect_url = 'record_modification'
def get_template_names(self):
templates = super(RecordWizard, self).get_template_names()
@@ -147,10 +148,11 @@ class RecordModifWizard(RecordWizard):
return kwargs
-class RecordDeletionWizard(DeletionWizard):
+class RecordDeletionWizard(MultipleDeletionWizard):
model = models.ContextRecord
fields = ['label', 'parcel', 'description', 'length', 'width', 'thickness',
'depth', 'location', 'datings', 'units', 'documentations',
'filling', 'interpretation', 'taq', 'taq_estimated', 'tpq',
'tpq_estimated']
filter_owns = {'selec-record_deletion': ['pk']}
+ redirect_url = "record_deletion"