summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-22 23:21:32 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-22 23:21:32 +0200
commitc8388628cfb28a3acae8ab85b7eb09aef9b49599 (patch)
treee0ff4b3d3f7242517ade10cc81843921e565b5ef /archaeological_finds/views.py
parent734f382a6a7873ec2eb00c0da3f0beb80dc615c9 (diff)
downloadIshtar-c8388628cfb28a3acae8ab85b7eb09aef9b49599.tar.bz2
Ishtar-c8388628cfb28a3acae8ab85b7eb09aef9b49599.zip
Treatments: more work on db treatments efficiency (refs #3108)
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 6bad075b5..783b336f2 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -330,7 +330,8 @@ class DeleteFindBasketView(IshtarMixin, LoginRequiredMixin, FormView):
return HttpResponseRedirect(self.get_success_url())
get_treatment = get_item(
- models.Treatment, 'get_treatment', 'treatment')
+ models.FindTreatments, 'get_treatment', 'treatment',
+ extra_request_keys={'find_id': 'find_id'})
treatment_creation_wizard = TreatmentWizard.as_view([
('basetreatment-treatment_creation', BaseTreatmentForm),