fix(api): Admin library foreign key error NOCHANGELOG
This commit is contained in:
parent
b4b8a36516
commit
5fc8102776
|
@ -116,7 +116,7 @@ launch_scan.short_description = "Launch scan"
|
||||||
class LibraryAdmin(admin.ModelAdmin):
|
class LibraryAdmin(admin.ModelAdmin):
|
||||||
list_display = ["id", "name", "actor", "uuid", "privacy_level", "creation_date"]
|
list_display = ["id", "name", "actor", "uuid", "privacy_level", "creation_date"]
|
||||||
list_select_related = True
|
list_select_related = True
|
||||||
search_fields = ["actor__username", "name", "description"]
|
search_fields = ["uuid", "name", "actor__preferred_username"]
|
||||||
list_filter = ["privacy_level"]
|
list_filter = ["privacy_level"]
|
||||||
actions = [launch_scan]
|
actions = [launch_scan]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue