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
This commit is contained in:
Fam Zheng 2025-12-27 10:33:44 +00:00
parent c38a4ffea9
commit f5acc55939

View File

@ -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'