Use the slug instead of the name for searching builds in admin
@@ -50,7 +50,7 @@ class BuildAdmin(admin.ModelAdmin):
list_select_related = ('project', 'version')
raw_id_fields = ('project', 'version')
inlines = (BuildCommandResultInline,)
- search_fields = ('project__name', 'version__slug')
+ search_fields = ('project__slug', 'version__slug')
def version_name(self, obj):
return obj.version.verbose_name
