2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

Use existing serializers to encode information for barcode response

This commit is contained in:
Oliver Walters
2020-04-15 23:41:16 +10:00
parent d19e287cb5
commit 10ee8bc666
3 changed files with 34 additions and 11 deletions

View File

@ -96,6 +96,8 @@ class PartSerializer(InvenTreeModelSerializer):
queryset = queryset.prefetch_related('builds')
return queryset
# TODO - Include a 'category_detail' field which serializers the category object
class Meta:
model = Part
partial = True