forked from 0x2620/pandora
faster item query, drop distinct
This commit is contained in:
parent
0042546d6c
commit
b55d368920
1 changed files with 2 additions and 1 deletions
|
@ -298,7 +298,8 @@ class ItemManager(Manager):
|
||||||
data.get('query', {}).get('operator', '&'),
|
data.get('query', {}).get('operator', '&'),
|
||||||
user)
|
user)
|
||||||
qs = qs.filter(conditions)
|
qs = qs.filter(conditions)
|
||||||
qs = qs.distinct()
|
#FIXME: why was this in?
|
||||||
|
#qs = qs.distinct()
|
||||||
|
|
||||||
#anonymous can only see public items
|
#anonymous can only see public items
|
||||||
if not user or user.is_anonymous():
|
if not user or user.is_anonymous():
|
||||||
|
|
Loading…
Reference in a new issue