* cc: cmawebsite@… (added)
Comment:
If it helps, I personally register the LogEntry model in the admin:
{{{
class LogEntryAdmin(admin.ModelAdmin):
list_display = ['action_time', 'obj', 'content_type', 'user',
'action', 'change_message']
list_filter = ['content_type']
readonly_fields = ['user', 'content_type', 'object_id', 'object_repr',
'action_flag', 'change_message']
def obj(self, obj):
return '<a href="%s">%s</a>' %
(obj.get_edited_object().get_absolute_url(),
conditional_escape(obj.object_repr))
obj.allow_tags = True
obj.admin_sort_field = 'object_repr'
def action(self, obj):
return (u'%s' % obj).split()[0]
obj.admin_sort_field = 'action_flag'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/8472#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.