mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Update admin.py
allow filtering by timestamp with date_hierarchy in admin
This commit is contained in:
parent
5621777622
commit
50dcc91d5b
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ from auditlog.models import LogEntry
|
|||
|
||||
@admin.register(LogEntry)
|
||||
class LogEntryAdmin(admin.ModelAdmin, LogEntryAdminMixin):
|
||||
date_hierarchy = 'timestamp'
|
||||
list_select_related = ["content_type", "actor"]
|
||||
list_display = [
|
||||
"created",
|
||||
|
|
|
|||
Loading…
Reference in a new issue