diff --git a/api/products/views.py b/api/products/views.py index 480cc12..0e507ea 100644 --- a/api/products/views.py +++ b/api/products/views.py @@ -352,6 +352,8 @@ class CodeBatchResource(BaseResource): schema['fields']['description']['longtext'] = True self.annotate_field(schema, 'code__count', '序列码数量') self.annotate_field(schema, 'tenant__username', '租户') + if 'verification_model' in schema['fields']: + schema['fields']['verification_model']['display_field'] = 'name' return self.patch_product_name_schema(schema) class CodeResource(BaseResource):