Black
This commit is contained in:
parent
ba75b5c086
commit
9d9d171209
3 changed files with 23 additions and 11 deletions
|
@ -176,7 +176,12 @@ class LogEntryAdmin(admin.ModelAdmin):
|
|||
"object_link",
|
||||
"diff_link",
|
||||
)
|
||||
search_fields = ("object_repr", "change_message", "user__username", "content_type__model")
|
||||
search_fields = (
|
||||
"object_repr",
|
||||
"change_message",
|
||||
"user__username",
|
||||
"content_type__model",
|
||||
)
|
||||
list_filter = (UserListFilter, "content_type")
|
||||
list_display_links = None
|
||||
actions = None
|
||||
|
@ -227,4 +232,4 @@ class LogEntryAdmin(admin.ModelAdmin):
|
|||
diff_link.short_description = _("diff")
|
||||
|
||||
def queryset(self, request):
|
||||
return super().queryset(request).prefetch_related("content_type")
|
||||
return super().queryset(request).prefetch_related("content_type")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue