fix(api): enhance SupplierPartMixin queryset to include manufacturer part tags (#10215)
This commit is contained in:
parent
0d7e3fa068
commit
8f95e61035
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue