Friday, April 29, 2016

Display image instead of text in related-widget-wrapper of FK picker in admin interface.

How would one go about changing this:



into something where instead of 1, 2 there are pictures that correspond to those objects. The class itself is very simple:


Note that I use the picture already in the table view of this item (ie. admin/someapp/item/).

Can I somehow make the widget above also display the same image?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9032f08e-801a-464b-9bcf-b26ac42f6be1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment