Looking to incorporate a CSS hover effect into this Django admin function that shows a thumbnail in the admin area. The goal is to enlarge the image when hovered over.
def image_tag(self):
if self.image:
return mark_safe('<img src="%s" style="width: 50px; height:40px;" />' % self.image.url)
else:
return 'No Image Found'
image_tag.short_description = 'Image'