Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
silviogutierrez committed Feb 10, 2023
1 parent bbc358d commit 01ac6ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auditlog/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ class LogEntryAdmin(admin.ModelAdmin, LogEntryAdminMixin):
"object_repr",
"changes",
f"actor__{user_model.USERNAME_FIELD}",
] + (["actor__first_name", "actor__last_name"] if has_first_and_last_name_fields else [])
] + (
["actor__first_name", "actor__last_name"]
if has_first_and_last_name_fields
else []
)
list_filter = ["action", ResourceTypeFilter, CIDFilter]
readonly_fields = ["created", "resource_url", "action", "user_url", "msg"]
fieldsets = [
Expand Down

0 comments on commit 01ac6ec

Please sign in to comment.