Answer the question
In order to leave comments, you need to log in
How to implement multiple image upload in Django?
Hello! How to implement multiple image upload in admin panel?
pyuploadcare is definitely not suitable. Please advise any solution.
class ProductImage(models.Model):
product = models.ForeignKey(Product, verbose_name='товар')
image = models.ImageField(upload_to='products/images/', verbose_name='изображение')
thumbnail = models.BooleanField(default=False, verbose_name='миниатюра')
created = models.DateTimeField(auto_now_add=True, auto_now=False, verbose_name='дата создания')
updated = models.DateTimeField(auto_now_add=False, auto_now=True, verbose_name='дата изменения')
active = models.BooleanField(default=True, verbose_name='активно')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question