summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-12-14 22:02:33 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-12-14 22:02:33 +0100
commit6c47b6b3bc23aadc674175f140091f46aa5f3868 (patch)
tree51f9389ebd5b92cf477c169e9266201a8d90cbce /archaeological_finds/wizards.py
parent08811d24b0a1869322db82b65c4fbd8a35bc7327 (diff)
downloadIshtar-6c47b6b3bc23aadc674175f140091f46aa5f3868.tar.bz2
Ishtar-6c47b6b3bc23aadc674175f140091f46aa5f3868.zip
Force own filters for context records and finds
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index 0a7ddc284..c586cd809 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -71,19 +71,25 @@ class FindWizard(Wizard):
dct['base_finds__context_record'] = dct.pop('pk')
return dct
+
class FindModificationWizard(FindWizard):
modification = True
+ filter_owns = {'selec-find_modification': ['pk']}
+
class TreatmentWizard(Wizard):
model = models.Treatment
+
class FindSourceWizard(SourceWizard):
model = models.FindSource
+
class FindSourceDeletionWizard(DeletionWizard):
model = models.FindSource
fields = ['item', 'title', 'source_type', 'authors',]
+
class TreatmentSourceWizard(SourceWizard):
model = models.TreatmentSource