mirror of
https://github.com/yawaflua/SusMarket.git
synced 2025-12-08 19:49:36 +02:00
Затупчик
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user