From f5acc55939d3b689ae072d16039398138ebf6943 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sat, 27 Dec 2025 10:33:44 +0000 Subject: [PATCH] fix: add full=True to verification_model ForeignKey in CodeBatchResource - Return full object data instead of URI string for verification_model field - Consistent with other ForeignKey fields like service_qr_file, article, template_asset --- api/products/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/products/views.py b/api/products/views.py index 972398e..de71840 100644 --- a/api/products/views.py +++ b/api/products/views.py @@ -327,7 +327,7 @@ class ProductPropertyResource(BaseResource): class CodeBatchResource(BaseResource): tenant = ForeignKey(TenantResource, 'tenant', null=True, blank=True) - verification_model = ForeignKey(VerificationModelResource, 'verification_model', null=True, blank=True) + verification_model = ForeignKey(VerificationModelResource, 'verification_model', null=True, blank=True, full=True) class Meta: queryset = CodeBatch.objects.all().order_by('-pk') resource_name = 'code-batch'