From f00f1df505e041ba470aa6aa57d8e24e2aa9b4fc Mon Sep 17 00:00:00 2001 From: Sergey Mazilin Date: Wed, 27 Dec 2023 16:02:14 +0400 Subject: [PATCH] Update serializers.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit убрал лишний сериализатор --- backend/api/serializers.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backend/api/serializers.py b/backend/api/serializers.py index 13a3051..209ab4f 100644 --- a/backend/api/serializers.py +++ b/backend/api/serializers.py @@ -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): """Сериалайзер добавления Рецепта в Избранном."""