mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
added a simple admin interface for audit log entries
This commit is contained in:
parent
4d5f394fae
commit
022ba4c730
1 changed files with 8 additions and 0 deletions
8
src/auditlog/admin.py
Normal file
8
src/auditlog/admin.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from django.contrib import admin
|
||||
from .models import LogEntry
|
||||
|
||||
class LogEntryAdmin(admin.ModelAdmin):
|
||||
list_display = ('object_pk', 'object_repr', 'actor', 'action', 'changes', 'timestamp')
|
||||
|
||||
admin.site.register(LogEntry, LogEntryAdmin)
|
||||
|
||||
Loading…
Reference in a new issue