Skip to content

Instantly share code, notes, and snippets.

tombohub /
Created Aug 7, 2020 — forked from valberg/
Django create thumbnail form ImageField and save in a different ImageField - now with updating!
# Extension of
# Note: image_folder and thumbnail_folder are both a callable (ie. a lambda that does a '/'.join())
class Image(Media):
image = models.ImageField(
thumbnail = models.ImageField(