Skip to content

Instantly share code, notes, and snippets.

@hwshim0810 hwshim0810/admin.py
Created May 31, 2017

Embed
What would you like to do?
django admin thumnail image display
def get_thumb(self):
return format_html(
'<img src="{}" height="50" />'.format(self.inpupt_path)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.