Skip to content

Commit

Permalink
Update serializers.py
Browse files Browse the repository at this point in the history
убрал лишний сериализатор
  • Loading branch information
sergey-xx authored Dec 27, 2023
1 parent d6c8d1b commit f00f1df
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions backend/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,20 +338,6 @@ def to_representation(self, instance):
return representation


class RecipeFollowSerializer(serializers.ModelSerializer):
"""Сериалайзер добавления связки Рецепт/Подписка."""

image = Base64ImageField(required=False, allow_null=True)

class Meta:
fields = ('id',
'name',
'image',
'cooking_time'
)
model = Recipe


class FavoriteSerializer(serializers.ModelSerializer):
"""Сериалайзер добавления Рецепта в Избранном."""

Expand Down

0 comments on commit f00f1df

Please sign in to comment.