From 66d22dc2549bd04103a8be30f2dfa193588a7f43 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 15 Aug 2015 02:49:18 -0400 Subject: [PATCH] Add current source to the source log list view context so that link resolve properly. --- mayan/apps/sources/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mayan/apps/sources/views.py b/mayan/apps/sources/views.py index b264cb748b..066f2a7aed 100644 --- a/mayan/apps/sources/views.py +++ b/mayan/apps/sources/views.py @@ -58,8 +58,6 @@ class SourceLogListView(SingleObjectListView): def get_extra_context(self): return { - 'title': _('Log entries for source: %s') % self.get_source(), - 'hide_object': True, 'extra_columns': ( { 'name': _('Date time'), @@ -69,7 +67,10 @@ class SourceLogListView(SingleObjectListView): 'name': _('Message'), 'attribute': encapsulate(lambda entry: entry.message) }, - ) + ), + 'hide_object': True, + 'object': self.get_source(), + 'title': _('Log entries for source: %s') % self.get_source(), }