summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-23 17:35:32 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-23 17:35:32 +0200
commit04aa91ac15a41f031f1c62d3d5029c63e3185b2d (patch)
tree05a55ea77f73225297639c28cc0de56f31432cf1 /archaeological_finds/views.py
parent75a7e806a9431550446577a51536ad3533c2968b (diff)
downloadIshtar-04aa91ac15a41f031f1c62d3d5029c63e3185b2d.tar.bz2
Ishtar-04aa91ac15a41f031f1c62d3d5029c63e3185b2d.zip
Treatments: efficient view to get upstream and dowstream - CSV export of tables (refs #3108)
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 783b336f2..a449a2115 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -329,8 +329,13 @@ class DeleteFindBasketView(IshtarMixin, LoginRequiredMixin, FormView):
form.save()
return HttpResponseRedirect(self.get_success_url())
-get_treatment = get_item(
- models.FindTreatments, 'get_treatment', 'treatment',
+get_upstreamtreatment = get_item(
+ models.FindUpstreamTreatments, 'get_upstreamtreatment', 'uptreatment',
+ extra_request_keys={'find_id': 'find_id'})
+
+get_downstreamtreatment = get_item(
+ models.FindDownstreamTreatments, 'get_downstreamtreatment',
+ 'downtreatment',
extra_request_keys={'find_id': 'find_id'})
treatment_creation_wizard = TreatmentWizard.as_view([