A
A
Abdulla Mursalov2015-07-14 04:38:43
Django
Abdulla Mursalov, 2015-07-14 04:38:43

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

1 answer(s)
B
bromzh, 2015-07-14
@amaprograma

You can take this: https://github.com/sehmaschine/django-filebrowser
Or choose from here https://www.djangopackages.com/grids/g/ajax-file-u...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question