Serializer fix

This commit is contained in:
Oliver Walters 2019-05-21 15:42:52 +10:00
parent d1dfad591d
commit d3a5661dbd

View File

@ -132,7 +132,7 @@ class BomItemSerializer(InvenTreeModelSerializer):
queryset = queryset.prefetch_related('sub_part')
queryset = queryset.prefetch_related('sub_part__category')
queryset = queryset.prefetch_related('sub_part__stock_items')
queryset = queryset.prefetch_related('sub_part__suppliers__price_breaks')
queryset = queryset.prefetch_related('sub_part__supplier_parts__pricebreaks')
return queryset
class Meta: