Skip to content

Commit

Permalink
feat: 리스트 시리얼라이저에 음식 분류 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyDimension committed Aug 3, 2024
1 parent 8b870f1 commit 0d7dd98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion friends/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion restaurants/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0d7dd98

Please sign in to comment.