fix(api): Admin library foreign key error NOCHANGELOG

This commit is contained in:
petitminion 2025-02-11 13:47:59 +00:00
parent b4b8a36516
commit 5fc8102776
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ launch_scan.short_description = "Launch scan"
class LibraryAdmin(admin.ModelAdmin):
list_display = ["id", "name", "actor", "uuid", "privacy_level", "creation_date"]
list_select_related = True
search_fields = ["actor__username", "name", "description"]
search_fields = ["uuid", "name", "actor__preferred_username"]
list_filter = ["privacy_level"]
actions = [launch_scan]