I am loading a store site with Django. I need to upload 4 photos for one product But I can only upload one photo can you help me?
my models in products:
class Product(models.Model):
Name = models.CharField(max_length=60)
Descriptions = models.TextField()
Price = models.IntegerField()
Image = models.ImageField(upload_to='product')
category = models.ManyToManyField(Category, null=True, blank=True)
Discount = models.SmallIntegerField(null=True, blank=True)
Size = models.ManyToManyField(ProductSize, related_name='product')
Color = models.ManyToManyField(ProductColor, related_name='product', blank=True)
Property = models.ManyToManyField(ProductProperty, related_name='product')
My Views in products:
class ProductDetail(DetailView):
template_name = 'product/single-product.html'
model = Product