faster item query, drop distinct

This commit is contained in:
j 2012-04-02 12:52:53 +02:00
parent 0042546d6c
commit b55d368920

View file

@ -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():