add distinct again

This commit is contained in:
j 2012-04-02 12:56:39 +02:00
parent b55d368920
commit 513e79b431

View file

@ -298,8 +298,8 @@ class ItemManager(Manager):
data.get('query', {}).get('operator', '&'),
user)
qs = qs.filter(conditions)
#FIXME: why was this in?
#qs = qs.distinct()
#FIXME: can this be avoided? needed for grid/accessed/foo
qs = qs.distinct()
#anonymous can only see public items
if not user or user.is_anonymous():