diff --git a/cookbook/serializer.py b/cookbook/serializer.py index 57be3597..62f18526 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -583,7 +583,7 @@ class RecipeBookEntrySerializer(serializers.ModelSerializer): return RecipeBookSerializer(context={'request': self.context['request']}).to_representation(obj.book) def get_recipe_content(self, obj): - return RecipeSerializer(context={'request': self.context['request']}).to_representation(obj.recipe) + return RecipeOverviewSerializer(context={'request': self.context['request']}).to_representation(obj.recipe) def create(self, validated_data): book = validated_data['book']