add key=item support to findDocuments
This commit is contained in:
parent
934c79a7db
commit
388f4c9d74
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ def parseCondition(condition, user):
|
|||
k = condition.get('key', 'name')
|
||||
k = {
|
||||
'user': 'user__username',
|
||||
'item': 'items__itemId',
|
||||
}.get(k, k)
|
||||
if not k:
|
||||
k = 'name'
|
||||
|
|
Loading…
Reference in a new issue