From ae78524b703f187d24c6315d92ebb40d10e5954f Mon Sep 17 00:00:00 2001 From: KessPen <75772773+KessPenGames@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:57:42 +0700 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D1=82=D1=83=D0=BF=D1=87=D0=B8?= =?UTF-8?q?=D0=BA?= 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 6c5257c..edc6d56 100644 --- a/SusMarketBackend/models.py +++ b/SusMarketBackend/models.py @@ -23,7 +23,7 @@ class Product(models.Model): MinValueValidator(1), MaxValueValidator(999) ]) tags = models.TextField('Теги (Указывать через разделитель \'|\')', max_length=300) - icons = models.ImageField('Иконка товара', product="icons/product/") + icons = models.ImageField('Иконка товара', upload_to="icons/product/") category = models.ForeignKey(Category, on_delete=models.CASCADE) date = models.DateTimeField('Дата создания товара', auto_now=True)