fix(api): enhance SupplierPartMixin queryset to include manufacturer part tags (#10215)

This commit is contained in:
Reza 2025-08-24 01:16:06 +03:30 committed by GitHub
parent 0d7e3fa068
commit 8f95e61035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -335,7 +335,9 @@ class SupplierPartMixin:
queryset = super().get_queryset(*args, **kwargs)
queryset = SupplierPartSerializer.annotate_queryset(queryset)
queryset = queryset.prefetch_related('part', 'part__pricing_data')
queryset = queryset.prefetch_related(
'part', 'part__pricing_data', 'manufacturer_part__tags'
)
return queryset