mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-05 14:14:43 +00:00
Merge pull request #64 from crackjack/master
added a simple admin interface for audit log entries
This commit is contained in:
commit
ae056df716
1 changed files with 9 additions and 0 deletions
9
src/auditlog/admin.py
Normal file
9
src/auditlog/admin.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from django.contrib import admin
|
||||
from .models import LogEntry
|
||||
|
||||
class LogEntryAdmin(admin.ModelAdmin):
|
||||
list_display = ('object_pk', 'object_repr', 'actor', 'action', 'changes', 'timestamp')
|
||||
list_filter = ('content_type',)
|
||||
|
||||
admin.site.register(LogEntry, LogEntryAdmin)
|
||||
|
||||
Loading…
Reference in a new issue