From df6f22d68819349a7dc48369529ccc00dbf66479 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 30 Jan 2021 12:41:00 -0500 Subject: media: added checking import to models.py --- app/media/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/media/models.py') 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: -- cgit v1.2.3-70-g09d2