Update admin.py

allow filtering by timestamp with date_hierarchy in admin
This commit is contained in:
DavidHaas1 2024-11-16 11:43:10 -05:00
parent 5621777622
commit 50dcc91d5b

View file

@ -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",