Skip to content

Instantly share code, notes, and snippets.

@walison17
Created June 18, 2020 20:21
Show Gist options
  • Save walison17/7827cfb3489d132ab145917257ca6e34 to your computer and use it in GitHub Desktop.
Save walison17/7827cfb3489d132ab145917257ca6e34 to your computer and use it in GitHub Desktop.
from django.contrib import admin
from auditlog.admin import LogEntryAdmin
from auditlog.models import LogEntry
from .models import CustomLogEntry
@admin.register(CustomLogEntry)
class CustomLogEntryAdmin(LogEntryAdmin):
list_display = ['timestamp', 'resource_url', 'action', 'msg_short', 'user_url']
admin.site.unregister(LogEntry)
from auditlog.models import LogEntry
class CustomLogEntry(LogEntry):
class Meta:
proxy = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment