Added history event source object link to the history list view
This commit is contained in:
@@ -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>' % {
|
||||
|
||||
Reference in New Issue
Block a user