From 57f2f3fe61c5ac6f4a8acdbab41904cceed4ae53 Mon Sep 17 00:00:00 2001 From: dkfla Date: Wed, 7 Aug 2024 13:38:20 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=83=81=EC=84=B8=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=8B=B5=EA=B8=80=20=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restaurants/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restaurants/serializers.py b/restaurants/serializers.py index e959175..6dd430d 100644 --- a/restaurants/serializers.py +++ b/restaurants/serializers.py @@ -1,7 +1,7 @@ from rest_framework import serializers from .models import Restaurant, SearchHistory, UserRestaurantsList -from reviews.serializers import ReviewSerializer +from reviews.serializers import ReviewListSerializer class RestaurantSerializer(serializers.ModelSerializer): @@ -75,7 +75,7 @@ class Meta: def get_reviews(self, obj): reviews = obj.reviews.order_by("-recommend_count")[:4] - serializer = ReviewSerializer(reviews, many=True) + serializer = ReviewListSerializer(reviews, many=True) return serializer.data def get_rating_average(self, obj):