django: Display image in admin interface
- by Oleg Tarasenko
Hi,
I've defined a model which contains a link an image. Is there a way to display the image in the model items list. (e.g. if I defined an article this way:
class Article(models.Model):
url = models.CharField(max_length = 200, unique = True, help_text="/lessons/")
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 image together with title?