diff options
author | luxagraf <sng@luxagraf> | 2021-01-30 12:41:00 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-01-30 12:41:00 -0500 |
commit | df6f22d68819349a7dc48369529ccc00dbf66479 (patch) | |
tree | 77d9a260d0a17aabb6ad1739a777d0f42f456905 /app/media/models.py | |
parent | 68872a7ae0b8c78b4d7460e6fc42fb7669de6c3c (diff) |
media: added checking import to models.py
Diffstat (limited to 'app/media/models.py')
-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: |