From 06b4ba8bcc7d9b1f8a4d0518f182eceb346cdca0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 25 Feb 2025 21:08:34 -0500 Subject: [PATCH] [foods] Fix image bug in foods --- vrobbler/apps/foods/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vrobbler/apps/foods/models.py b/vrobbler/apps/foods/models.py index 6abde42..926fc4a 100644 --- a/vrobbler/apps/foods/models.py +++ b/vrobbler/apps/foods/models.py @@ -42,13 +42,13 @@ class Food(ScrobblableMixin): description = models.TextField(**BNULL) allrecipe_image = models.ImageField(upload_to="food/recipe/", **BNULL) allrecipe_image_small = ImageSpecField( - source="recipe_image", + source="allrecipe_image", processors=[ResizeToFit(100, 100)], format="JPEG", options={"quality": 60}, ) allrecipe_image_medium = ImageSpecField( - source="recipe_image", + source="allrecipe_image", processors=[ResizeToFit(300, 300)], format="JPEG", options={"quality": 75},