From 6c7b2bd977e556bb043c1752fab807e804653cec Mon Sep 17 00:00:00 2001 From: KessPen <75772773+KessPenGames@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:59:07 +0700 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D1=82=D0=B0?= =?UTF-8?q?=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SusMarketBackend/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SusMarketBackend/models.py b/SusMarketBackend/models.py index edc6d56..f0b292e 100644 --- a/SusMarketBackend/models.py +++ b/SusMarketBackend/models.py @@ -56,7 +56,7 @@ class Review(models.Model): MinValueValidator(1), MaxValueValidator(5) ]) product = models.ForeignKey(Product, on_delete=models.CASCADE) - icons = models.ImageField('Изображение отзыва', null=True, upload_to=f"icons/reviews/{product.id}") + icons = models.ImageField('Изображение отзыва', null=True, upload_to="icons/reviews/") user = models.ForeignKey(User, on_delete=models.CASCADE) date = models.DateTimeField('Дата создания отзыва', auto_now=True)