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(models.Model):
url = models.CharField(max_length = 200, unique = True)
title = models.CharField(max_length = 500)
img = models.CharField(max_length = 100) # Contains path to image
def __unicode__(self):
return u"%s" %title
Is there a way to display the image together with title?