mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Add date_hierarchy on timestamp to admin view (#687)
* Update admin.py allow filtering by timestamp with date_hierarchy in admin * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: DavidHaas1 <david.haas@takeda.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
8150d35aef
commit
925f0dbaee
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