required for complex queries
This commit is contained in:
parent
459fe87f7c
commit
e48148bc47
1 changed files with 1 additions and 0 deletions
|
@ -243,6 +243,7 @@ class ItemManager(Manager):
|
|||
conditions = parseConditions(data.get('query', {}).get('conditions', []),
|
||||
data.get('query', {}).get('operator', '&'))
|
||||
qs = qs.filter(conditions)
|
||||
qs = qs.distinct()
|
||||
|
||||
#anonymous can only see public items
|
||||
if user.is_anonymous():
|
||||
|
|
Loading…
Reference in a new issue