I\'ve defined a model which contains a link an image. Is there a way to display the image in the model items list? My model looks like this:
class Article(mo
(I'm using Django 1.5) In addition to following the steps in the accepted answer, I ALSO had to mark the image tag as being "safe"
To do this, wrap the return value with the mark_safe method of django.utils.safestring package.
code example: https://stackoverflow.com/a/14075441/1063031
django docs: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escaping