2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Enable upload of company image via the API

This commit is contained in:
Oliver
2021-06-23 08:39:06 +10:00
parent f199feb8d9
commit 878f26c770
3 changed files with 4 additions and 3 deletions

View File

@ -304,7 +304,6 @@ class PartSerializer(InvenTreeModelSerializer):
suppliers = serializers.IntegerField(read_only=True)
image = InvenTreeImageSerializerField(required=False)
# image = serializers.CharField(source='get_image_url', read_only=True)
thumbnail = serializers.CharField(source='get_thumbnail_url', read_only=True)
starred = serializers.SerializerMethodField()