diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-14 09:03:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-14 09:03:56 +0200 |
commit | 73ba1638f580f6968126f4939a1f4495710915cb (patch) | |
tree | bf7480e89c9d0dea0932faf346762e3db7e5b7f9 /archaeological_context_records/wizards.py | |
parent | 63ffae36db57b1f2a0df50e43c04a0676df79bc9 (diff) | |
download | Ishtar-73ba1638f580f6968126f4939a1f4495710915cb.tar.bz2 Ishtar-73ba1638f580f6968126f4939a1f4495710915cb.zip |
Context records: multiple deletion - redirections after wizard changes
Diffstat (limited to 'archaeological_context_records/wizards.py')
-rw-r--r-- | archaeological_context_records/wizards.py | 6 |
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" |