summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-22 16:59:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-22 16:59:00 +0200
commit7870e9eb392a0ced9fa722e8a4c1e048075c04ff (patch)
tree608a87900972a8d227dabd864a669bd8bc1c633b /archaeological_finds/wizards.py
parentee52553baad7d5b28a44e55a79104bbcf71e5ed1 (diff)
downloadIshtar-7870e9eb392a0ced9fa722e8a4c1e048075c04ff.tar.bz2
Ishtar-7870e9eb392a0ced9fa722e8a4c1e048075c04ff.zip
Bookmark: manage missing bookmark configuration
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index b15948dce..6486e5da1 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -21,7 +21,7 @@ from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
from django.utils.translation import ugettext_lazy as _
from ishtar_common.forms import reverse_lazy
-from ishtar_common.wizards import Wizard, DeletionWizard, SourceWizard
+from ishtar_common.wizards import Wizard, DeletionWizard, SearchWizard
from archaeological_operations.wizards import OperationAdministrativeActWizard
from archaeological_operations.models import AdministrativeAct
@@ -29,6 +29,10 @@ from archaeological_context_records.models import ContextRecord
import models
+class FindSearch(SearchWizard):
+ model = models.Find
+
+
class FindWizard(Wizard):
model = models.Find
wizard_done_window = reverse_lazy('show-find')
@@ -98,6 +102,10 @@ class FindDeletionWizard(DeletionWizard):
'comment']
+class TreatmentSearch(SearchWizard):
+ model = models.Treatment
+
+
class TreatmentWizard(Wizard):
model = models.Treatment
wizard_done_window = reverse_lazy('show-treatment')
@@ -162,6 +170,10 @@ class TreatmentEditAdministrativeActWizard(TreatmentAdministrativeActWizard):
return self.get_current_object().treatment
+class TreatmentFileSearch(SearchWizard):
+ model = models.TreatmentFile
+
+
class TreatmentFileWizard(Wizard):
model = models.TreatmentFile
wizard_done_window = reverse_lazy('show-treatmentfile')