From 9bcdb01b79618c161a83e34c51dc0269c022e570 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 18 Mar 2012 03:32:20 -0400 Subject: [PATCH] Fix source transformation edit and delete view secondary links --- apps/sources/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/sources/views.py b/apps/sources/views.py index aede2f4e1a..54d5fb7f43 100644 --- a/apps/sources/views.py +++ b/apps/sources/views.py @@ -697,6 +697,7 @@ def setup_source_transformation_edit(request, transformation_id): return render_to_response('generic_form.html', { 'title': _(u'Edit transformation: %s') % source_transformation, 'form': form, + 'source_type': source_transformation.content_object.source_type, 'source': source_transformation.content_object, 'transformation': source_transformation, 'navigation_object_list': [ @@ -729,6 +730,7 @@ def setup_source_transformation_delete(request, transformation_id): 'delete_view': True, 'transformation': source_transformation, 'source': source_transformation.content_object, + 'source_type': source_transformation.content_object.source_type, 'navigation_object_list': [ {'object': 'source', 'name': _(u'source')}, {'object': 'transformation', 'name': _(u'transformation')}