Skip to content

Instantly share code, notes, and snippets.

@hwshim0810
Created May 31, 2017 02:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hwshim0810/b9b6c06d58e8edb7a5b78dac283f8b79 to your computer and use it in GitHub Desktop.
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