Re: Image in Form Field

2015-03-23 Thread Vijay Khemlani
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

Re: Image in Form Field

2015-03-23 Thread Sandeep kaur
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

Image in Form Field

2015-03-22 Thread Sandeep kaur
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 '%