diff options
Diffstat (limited to 'app/sightings/models.py')
-rw-r--r-- | app/sightings/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/sightings/models.py b/app/sightings/models.py index 2a14e85..b54be12 100644 --- a/app/sightings/models.py +++ b/app/sightings/models.py @@ -12,7 +12,7 @@ from django.conf import settings from bs4 import BeautifulSoup from locations.models import Location -from photos.models import LuxImage, LuxImageSize +from media.models import LuxImage, LuxImageSize from utils.next_prev import next_in_order, prev_in_order from utils.util import render_images, extract_main_image, markdown_to_html @@ -186,7 +186,7 @@ class Sighting(models.Model): for img in self.images.all(): for size in img.sizes.all(): if size.width > 360 and size.width < 700: - return img.get_image_by_size(size) + return img.get_image_url_by_size(size) def get_absolute_url(self): return reverse("sightings:detail", kwargs={"slug": self.ap.slug}) |