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:
parent
c38a4ffea9
commit
f5acc55939
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user