From 9a288a3fd8064a088aa3330fb0f0b7f7c93da542 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 23 Aug 2011 22:20:31 +0200 Subject: [PATCH] fix poster --- pandora/item/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 61ff36a37..32a326e3f 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -615,7 +615,7 @@ def siteposter(request, id, size=None): def poster(request, id, size=None): item = get_object_or_404(models.Item, itemId=id) if item.poster: - return image_to_response(item, item.poster, size) + return image_to_response(item.poster, size) else: poster_path = os.path.join(settings.STATIC_ROOT, 'png/posterDark.48.png') response = HttpFileResponse(poster_path, content_type='image/jpeg') @@ -626,7 +626,7 @@ def poster(request, id, size=None): def icon(request, id, size=None): item = get_object_or_404(models.Item, itemId=id) if item.icon: - return image_to_response(item, item.icon, size) + return image_to_response(item.icon, size) else: raise Http404