From 92cb7211ced884769922831b8f2e3e815594b838 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 6 Apr 2020 12:57:04 +1000 Subject: [PATCH] Rename 'image_url' to 'thumbnail' in PartBrief API --- InvenTree/part/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/serializers.py b/InvenTree/part/serializers.py index 18d8fbd8c8..d5270cabb2 100644 --- a/InvenTree/part/serializers.py +++ b/InvenTree/part/serializers.py @@ -47,7 +47,7 @@ class PartBriefSerializer(InvenTreeModelSerializer): """ Serializer for Part (brief detail) """ url = serializers.CharField(source='get_absolute_url', read_only=True) - image_url = serializers.CharField(source='get_thumbnail_url', read_only=True) + thumbnail = serializers.CharField(source='get_thumbnail_url', read_only=True) @staticmethod def setup_eager_loading(queryset): @@ -66,7 +66,7 @@ class PartBriefSerializer(InvenTreeModelSerializer): 'description', 'total_stock', 'available_stock', - 'image_url', + 'thumbnail', 'active', 'assembly', 'virtual',