Created
May 31, 2017 02:27
Star
You must be signed in to star a gist
django admin thumnail image display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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