W
W
whiteblackness2015-06-02 16:09:56
Django
whiteblackness, 2015-06-02 16:09:56

How to add image to select option in django select2?

I'm using Select2MultipleWidget to select multiple photos from the list.
The photo model includes the title and the actual file and image.
def __unicode__(self) - returns the title.
The widget works for me, but I need pictures in the selection option as well.
Like in this screenshot.
blog.applegrew.com/wp-content/uploads/2012/08/Scre...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denizen, 2015-06-03
@denizen

The official doc has an example of manually "rendering" a form. See if it fits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question