From e06bfb2e2f38a9412ac80b166d1234a8b8f4de9a Mon Sep 17 00:00:00 2001 From: KessPen <75772773+KessPenGames@users.noreply.github.com> Date: Thu, 2 May 2024 16:23:06 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=83=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SusMarketBackend/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SusMarketBackend/models.py b/SusMarketBackend/models.py index f0b292e..631b897 100644 --- a/SusMarketBackend/models.py +++ b/SusMarketBackend/models.py @@ -5,7 +5,7 @@ from django.db import models class Category(models.Model): id = models.CharField('ID Категории', max_length=50, unique=True, primary_key=True, db_index=True) title = models.CharField('Название Категории', max_length=50) - image = models.ImageField('Картинка категории', upload_to="icons/category/") + image = models.ImageField('Картинка категории', upload_to="reactapp/src/assets/icons/category/") def __str__(self): return self.title @@ -23,7 +23,7 @@ class Product(models.Model): MinValueValidator(1), MaxValueValidator(999) ]) tags = models.TextField('Теги (Указывать через разделитель \'|\')', max_length=300) - icons = models.ImageField('Иконка товара', upload_to="icons/product/") + icons = models.ImageField('Иконка товара', upload_to="reactapp/src/assets/icons/product/") category = models.ForeignKey(Category, on_delete=models.CASCADE) date = models.DateTimeField('Дата создания товара', auto_now=True) @@ -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="icons/reviews/") + icons = models.ImageField('Изображение отзыва', null=True, upload_to="reactapp/src/assets/icons/reviews/") user = models.ForeignKey(User, on_delete=models.CASCADE) date = models.DateTimeField('Дата создания отзыва', auto_now=True)