class Product(models.Model):
name = models.CharField(max_length=255, unique=True)
slug = models.SlugField(max_length=255, unique=True)
price = models.DecimalField(max_digits=9, decimal_places=2)
quantity = models.IntegerField()
categories = models.ManyToManyField(Category, related_name='categories')
image = models.ImageField(default='default.jpg', upload_to='product_images')
image2 = models.ImageField(default='default.jpg', upload_to='product_images')
image2 = models.ImageField(default='default.jpg', upload_to='product_images')
active = models.BooleanField(default=True)
created_at = models.TimeField(auto_now_add=True)
updated_at = models.TimeField(auto_now=True)
this the code I have now but now I can't choose wether to upload just 1 image or 3. is there a way to have sometimes only one imagefield and sometimes multiple?