How do I add an image to the select option in django select2?
I use Select2MultipleWidget to select multiple photos from the suggested ones.
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 this screenshot.
blog.applegrew.com/wp-content/uploads/2012/08/Scre ...Django Juliette Bates, Oct 16, 2020
The official dock has an example manual "rendering" of the form. Look, it might fit.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!