Skip to content

Commit

Permalink
#71 fix : modify item locations form (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
0321minji authored Aug 14, 2024
1 parent f17d6ac commit 63ba5ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lands/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def get_item_image(self, obj):

def get_locations(self, obj):
user_email = self.context.get('user_email')
locations = obj.locations.filter(land__user__email=user_email)
return LandApi.LocationSerializer(locations, many=True).data
locations = obj.locations.get(land__user__email=user_email)
return LandApi.LocationSerializer(locations).data

class LandItemOutputSerializer(serializers.Serializer):
land = serializers.SerializerMethodField()
Expand Down

0 comments on commit 63ba5ba

Please sign in to comment.