From 438614f0089978b2e0ec1a05b3bb46b64ebf1bcb Mon Sep 17 00:00:00 2001 From: Anna Pobedonostseva Date: Sat, 23 Sep 2023 19:27:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B5=D0=BF=D0=BB=D0=BE=D0=B9=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B4=20=D1=80=D0=B5=D0=B2=D1=8C=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/recipes/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/recipes/models.py b/backend/recipes/models.py index b4472dd..a86f30d 100644 --- a/backend/recipes/models.py +++ b/backend/recipes/models.py @@ -71,8 +71,7 @@ class Recipe(models.Model): ) cooking_time = models.PositiveSmallIntegerField( verbose_name='Время приготовления', - validators=[validators.MinValueValidator(1)] - ) + validators=[validators.MinValueValidator(1)]) pub_date = models.DateTimeField( verbose_name='Дата публикации', auto_now_add=True