summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-12 15:15:09 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-12 15:15:09 +0100
commit1da20a5b5bb591c0789f570399d9c644ec3e4263 (patch)
tree910c99cc3b67c0cd914547692e3a540c10df8181 /archaeological_finds/wizards.py
parent158ea3c4c1c03d014f12b94f29b38a4a2697d77c (diff)
downloadIshtar-1da20a5b5bb591c0789f570399d9c644ec3e4263.tar.bz2
Ishtar-1da20a5b5bb591c0789f570399d9c644ec3e4263.zip
Manage treatment / treatment files sources
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index f5f43f1e6..c9d492329 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -190,7 +190,9 @@ class TreatmentFileAdministrativeActWizard(
admin = AdministrativeAct.objects.get(pk=admin_id)
if not admin.operation:
return
- return ((_(u"Operation"), unicode(admin.operation)),)
+ return (
+ (_(u"Operation"), unicode(admin.operation)),
+ )
except AdministrativeAct.DoesNotExist:
return
return
@@ -217,3 +219,17 @@ class FindSourceDeletionWizard(DeletionWizard):
class TreatmentSourceWizard(SourceWizard):
model = models.TreatmentSource
+
+
+class TreatmentSourceDeletionWizard(DeletionWizard):
+ model = models.TreatmentSource
+ fields = ['treatment', 'title', 'source_type', 'authors']
+
+
+class TreatmentFileSourceWizard(SourceWizard):
+ model = models.TreatmentFileSource
+
+
+class TreatmentFileSourceDeletionWizard(DeletionWizard):
+ model = models.TreatmentFileSource
+ fields = ['treatment_file', 'title', 'source_type', 'authors']