diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-25 11:29:47 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-25 11:29:47 +0100 |
commit | cd9e0a4be602877bde4f9811cadb422f72abad5b (patch) | |
tree | 42f9649632e7cb18b4faf337cd9e459e9edee9c7 /archaeological_warehouse/wizards.py | |
parent | f28e33bcf8c290d3ff2fab20c4d5728c847ff73b (diff) | |
download | Ishtar-cd9e0a4be602877bde4f9811cadb422f72abad5b.tar.bz2 Ishtar-cd9e0a4be602877bde4f9811cadb422f72abad5b.zip |
Manage container deletion (refs #3392)
Diffstat (limited to 'archaeological_warehouse/wizards.py')
-rw-r--r-- | archaeological_warehouse/wizards.py | 9 |
1 files changed, 8 insertions, 1 deletions
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'] |