From 6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 25 Dec 2016 11:29:47 +0100 Subject: Manage container deletion (refs #3392) --- archaeological_warehouse/wizards.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/wizards.py') diff --git a/archaeological_warehouse/wizards.py b/archaeological_warehouse/wizards.py index 0cc6915f8..0d73d9fd5 100644 --- a/archaeological_warehouse/wizards.py +++ b/archaeological_warehouse/wizards.py @@ -21,7 +21,7 @@ from django.shortcuts import render_to_response from django.template import RequestContext from ishtar_common.forms import reverse_lazy -from ishtar_common.wizards import Wizard +from ishtar_common.wizards import Wizard, DeletionWizard from archaeological_finds.wizards import TreatmentWizard from archaeological_finds.models import Treatment, TreatmentType @@ -118,5 +118,12 @@ class ContainerWizard(Wizard): self.wizard_done_template, {}, context_instance=RequestContext(self.request)) + class ContainerModificationWizard(ContainerWizard): modification = True + + +class ContainerDeletionWizard(DeletionWizard): + model = models.Container + fields = ['container_type', 'reference', 'comment', 'location', 'index', + 'cached_label'] -- cgit v1.2.3