mirror of
https://github.com/yawaflua/SusMarket.git
synced 2025-12-09 20:19:31 +02:00
убрал там
This commit is contained in:
@@ -56,7 +56,7 @@ class Review(models.Model):
|
|||||||
MinValueValidator(1), MaxValueValidator(5)
|
MinValueValidator(1), MaxValueValidator(5)
|
||||||
])
|
])
|
||||||
product = models.ForeignKey(Product, on_delete=models.CASCADE)
|
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)
|
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||||
date = models.DateTimeField('Дата создания отзыва', auto_now=True)
|
date = models.DateTimeField('Дата создания отзыва', auto_now=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user