diff --git a/friends/serializers.py b/friends/serializers.py index 661ec6f..0de4d1c 100644 --- a/friends/serializers.py +++ b/friends/serializers.py @@ -52,7 +52,7 @@ class RestaurantlistSerializer(serializers.ModelSerializer): class Meta: model = Restaurant - fields = ["name", "rating_average", "latitude", "longitude"] + fields = ["name", "food_type", "rating_average", "latitude", "longitude"] def get_rating_average(self, obj): return obj.rating_average() diff --git a/restaurants/serializers.py b/restaurants/serializers.py index c51e969..70dc09e 100644 --- a/restaurants/serializers.py +++ b/restaurants/serializers.py @@ -41,7 +41,7 @@ class RestaurantlistSerializer(serializers.ModelSerializer): class Meta: model = Restaurant - fields = ["name", "rating_average", "latitude", "longitude"] + fields = ["name", "food_type", "rating_average", "latitude", "longitude"] def get_rating_average(self, obj): return obj.rating_average()