Skip to content
Snippets Groups Projects
Commit 2be00a82 authored by Bastien Abadie's avatar Bastien Abadie Committed by Erwan Rouchet
Browse files

Search across workers in admin

parent ce8f2cde
No related branches found
No related tags found
1 merge request!2533Search across workers in admin
......@@ -92,6 +92,7 @@ class WorkerAdmin(admin.ModelAdmin):
)
readonly_fields = ("id", )
inlines = [WorkerVersionInline, WorkerConfigurationInline]
search_fields = ("name", "slug", "description")
def get_queryset(self, *args, **kwargs):
return super().get_queryset(*args, **kwargs).select_related("type")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment