summaryrefslogtreecommitdiff
path: root/app/utils/util.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-04 10:38:08 -0500
committerluxagraf <sng@luxagraf.net>2020-12-04 10:38:08 -0500
commit9e7d92e0276a350179485a1d1ff351c4f6d03d7d (patch)
tree336f2e7bf766021b4bf82fc08eec938abf430472 /app/utils/util.py
parent14d8b65e1111ceec813dfe68c5f5a739a9cddc78 (diff)
got rid of another reference to old photos app
Diffstat (limited to 'app/utils/util.py')
-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