diff options
Diffstat (limited to 'app/media')
-rw-r--r-- | app/media/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/media/models.py b/app/media/models.py index fe12a55..83a2c7a 100644 --- a/app/media/models.py +++ b/app/media/models.py @@ -24,7 +24,7 @@ from taggit.managers import TaggableManager from .readexif import readexif from .utils import resize_image -from locations.models import Location +from locations.models import Location, CheckIn def get_upload_path(self, filename): @@ -404,6 +404,7 @@ def update_photo_sizes(sender, instance, **kwargs): print("file %s exists" % size) pass + def generate_image(luximage, size): new_size = LuxImageSize.objects.get(slug=size) if new_size.width: |