From f7cc2a0a58fbaeb4f65912e3602145159461143c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 9 Aug 2011 10:37:37 +0200 Subject: [PATCH] do not send empty reviews list --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 9b213eb7a..093290570 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -437,6 +437,8 @@ class Item(models.Model): if 'reviews' in i: i['reviews'] = self.reviews() + if not i['reviews']: + del i['reviews'] if 'cast' in i and isinstance(i['cast'][0], basestring): i['cast'] = [i['cast']] if 'cast' in i and isinstance(i['cast'][0], list):