Added history event source object link to the history list view

This commit is contained in:
Roberto Rosario
2011-05-29 00:01:19 -04:00
parent 9ce75e4671
commit 14a6c9d3f0

View File

@@ -28,6 +28,13 @@ def history_list(request):
'name': _(u'date and time'),
'attribute': 'datetime'
},
{
'name': _(u'object'),
'attribute': lambda x: '<a href="%(url)s">%(label)s</a>' % {
'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: '<a href="%(url)s">%(label)s</a>' % {