summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/utils/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/utils/util.py b/app/utils/util.py
index dc04b0b..d9b2318 100644
--- a/app/utils/util.py
+++ b/app/utils/util.py
@@ -45,7 +45,7 @@ def extract_main_image(markdown):
try:
image = soup.find_all('img')[0]['id']
img_pk = image.split('image-')[1]
- return apps.get_model('photos', 'LuxImage').objects.get(pk=img_pk)
+ return apps.get_model('media', 'LuxImage').objects.get(pk=img_pk)
except IndexError:
return None
@@ -74,7 +74,7 @@ def parse_image(s):
else:
try:
image_id = img['id'].split("image-")[1]
- i = apps.get_model('photos', 'LuxImage').objects.get(pk=image_id)
+ i = apps.get_model('media', 'LuxImage').objects.get(pk=image_id)
caption = False
exif = False
cluster_class = None
@@ -141,7 +141,7 @@ def parse_reg_bio_page():
try:
image = soup.find_all('img')[0]['id']
img_pk = image.split('image-')[1]
- return apps.get_model('photos', 'LuxImage').objects.get(pk=img_pk)
+ return apps.get_model('media', 'LuxImage').objects.get(pk=img_pk)
except IndexError:
return None