I'm trying to show the images from my model within the Django Admin:
class RewardAdmin(admin.ModelAdmin):
list_display = ('name', 'company', 'offer_image')
I'm using Django Storages and images are stored in S3. But the images don't show (see image)...
I have tried by adding the following model method
def offer_image(self):
return '<img src={} style="height: 100px;"/>'.format(self.offer_image)
How can I get this to work?
Is there a version of request.build_absolute_uri()
that I can use?