From 50dcc91d5b16f9b29f6829af656ced8f0b154708 Mon Sep 17 00:00:00 2001
From: DavidHaas1 <david.haas@takeda.com>
Date: Sat, 16 Nov 2024 11:43:10 -0500
Subject: [PATCH 1/2] Update admin.py

allow filtering by timestamp with date_hierarchy in admin
---
 auditlog/admin.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/auditlog/admin.py b/auditlog/admin.py
index 130f4806..22b8a819 100644
--- a/auditlog/admin.py
+++ b/auditlog/admin.py
@@ -11,6 +11,7 @@
 
 @admin.register(LogEntry)
 class LogEntryAdmin(admin.ModelAdmin, LogEntryAdminMixin):
+    date_hierarchy = 'timestamp'
     list_select_related = ["content_type", "actor"]
     list_display = [
         "created",

From e4cbf13077ab0b15bdebdcd0160d098326984755 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Sat, 16 Nov 2024 16:46:20 +0000
Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
---
 auditlog/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/auditlog/admin.py b/auditlog/admin.py
index 22b8a819..595ec4c6 100644
--- a/auditlog/admin.py
+++ b/auditlog/admin.py
@@ -11,7 +11,7 @@
 
 @admin.register(LogEntry)
 class LogEntryAdmin(admin.ModelAdmin, LogEntryAdminMixin):
-    date_hierarchy = 'timestamp'
+    date_hierarchy = "timestamp"
     list_select_related = ["content_type", "actor"]
     list_display = [
         "created",