summaryrefslogtreecommitdiff
path: root/app/products
diff options
context:
space:
mode:
Diffstat (limited to 'app/products')
-rw-r--r--app/products/migrations/0005_product_featured_image.py3
-rw-r--r--app/products/models.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/app/products/migrations/0005_product_featured_image.py b/app/products/migrations/0005_product_featured_image.py
index 91e37b0..032bbfa 100644
--- a/app/products/migrations/0005_product_featured_image.py
+++ b/app/products/migrations/0005_product_featured_image.py
@@ -7,7 +7,6 @@ import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
- ('photos', '0019_auto_20190704_0903'),
('products', '0004_auto_20191109_0849'),
]
@@ -15,6 +14,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='product',
name='featured_image',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage'),
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.LuxImage'),
),
]
diff --git a/app/products/models.py b/app/products/models.py
index 375c0cb..4b7dbec 100644
--- a/app/products/models.py
+++ b/app/products/models.py
@@ -10,8 +10,8 @@ from django.utils.html import format_html
from django.conf import settings
from django.template.defaultfilters import slugify
-from photos.models import PhotoGallery, LuxImage, LuxImageSize
-from photos.utils import resize_image
+from media.models import LuxImage, LuxImageSize
+from media.utils import resize_image
from utils.util import render_images, render_products, parse_video, markdown_to_html