2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 02:55:41 +00:00
This commit is contained in:
Oliver Walters
2020-08-26 23:50:49 +10:00
parent 72899530cf
commit 4be1b2928b

View File

@ -104,7 +104,7 @@ class SupplierPartSerializer(InvenTreeModelSerializer):
self.fields.pop('manufacturer_detail') self.fields.pop('manufacturer_detail')
if prettify is not True: if prettify is not True:
self.fields.pop('pretty_name') self.fields.pop('pretty_name')
supplier = serializers.PrimaryKeyRelatedField(queryset=Company.objects.filter(is_supplier=True)) supplier = serializers.PrimaryKeyRelatedField(queryset=Company.objects.filter(is_supplier=True))