Created
June 18, 2020 20:21
-
-
Save walison17/7827cfb3489d132ab145917257ca6e34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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