убрал там

This commit is contained in:
KessPen
2024-04-30 17:59:07 +07:00
parent ae78524b70
commit 6c7b2bd977

View File

@@ -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)