From b55d36892058e7b9c61e978028a74f0de09052ab Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 2 Apr 2012 12:52:53 +0200 Subject: [PATCH] faster item query, drop distinct --- pandora/item/managers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/managers.py b/pandora/item/managers.py index 48deefa16..c18274325 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -298,7 +298,8 @@ class ItemManager(Manager): data.get('query', {}).get('operator', '&'), user) qs = qs.filter(conditions) - qs = qs.distinct() + #FIXME: why was this in? + #qs = qs.distinct() #anonymous can only see public items if not user or user.is_anonymous():