You can't include images in the options of a typycal html dropdown
To do so you need to use JavaScript, for example this plugin
http://designwithpc.com/plugins/ddslick#demo
And pass the options in the format specified by the plugin
On Mon, Mar 23, 2015 at 1:51 PM, Sandeep kaur wrote:
> Anybod
Anybody please help.
On Sun, Mar 22, 2015 at 3:07 PM, Sandeep kaur wrote:
> Greetings,
> I want to have the thumnails of images with the names in the dropdown
> field of form. To return the image as foreign key field, I have used this
> code :
> def __unicode__(self):
> image_data =
> o
Greetings,
I want to have the thumnails of images with the names in the dropdown field
of form. To return the image as foreign key field, I have used this code :
def __unicode__(self):
image_data =
open("/home/sandy/whats-fresh-api/media/images/download.jpg", "rb").read()
return '%
3 matches
Mail list logo