mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Add content type to resource field
This commit is contained in:
parent
728fb0439e
commit
194e1e4c93
1 changed files with 3 additions and 1 deletions
|
|
@ -40,7 +40,9 @@ class LogEntryAdminMixin(object):
|
|||
except NoReverseMatch:
|
||||
return obj.object_repr
|
||||
else:
|
||||
return format_html('<a href="{}">{}</a>', link, obj.object_repr)
|
||||
return format_html(
|
||||
'<a href="{}">{} - {}</a>', link, obj.content_type, obj.object_repr
|
||||
)
|
||||
|
||||
resource_url.short_description = "Resource"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue