overview for books

This commit is contained in:
vabene1111 2021-10-12 17:13:43 +02:00
parent 75942035b8
commit a7c80d65b1

View File

@ -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']