diff --git a/InvenTree/part/serializers.py b/InvenTree/part/serializers.py index 0e0c708156..a303ea7aa1 100644 --- a/InvenTree/part/serializers.py +++ b/InvenTree/part/serializers.py @@ -61,6 +61,7 @@ class PartSerializer(serializers.ModelSerializer): @staticmethod def setup_eager_loading(queryset): queryset = queryset.prefetch_related('category') + queryset = queryset.prefetch_related('locations') return queryset class Meta: