From 14a6c9d3f0f6e2da7fa036a32b53ebc66f7032b6 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 29 May 2011 00:01:19 -0400 Subject: [PATCH] Added history event source object link to the history list view --- apps/history/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/history/views.py b/apps/history/views.py index 213105996e..7752ea2613 100644 --- a/apps/history/views.py +++ b/apps/history/views.py @@ -28,6 +28,13 @@ def history_list(request): 'name': _(u'date and time'), 'attribute': 'datetime' }, + { + 'name': _(u'object'), + 'attribute': lambda x: '%(label)s' % { + 'url': x.content_object.get_absolute_url() if x.content_object else u'#', + 'label': unicode(x.content_object) if x.content_object else u'' + } + }, { 'name': _(u'summary'), 'attribute': lambda x: '%(label)s' % {