merge
This commit is contained in:
commit
219a5bbf32
21 changed files with 294 additions and 446 deletions
|
|
@ -98,7 +98,8 @@ def parseCondition(condition):
|
|||
elif key_type == 'list':
|
||||
q = Q(itemId=False)
|
||||
l = v.split(":")
|
||||
if len(l) == 2:
|
||||
if len(l) >= 2:
|
||||
l = (l[0], ":".join(l[1:]))
|
||||
lqs = list(List.objects.filter(name=l[1], user__username=l[0]))
|
||||
if len(lqs) == 1:
|
||||
l = lqs[0]
|
||||
|
|
@ -165,9 +166,7 @@ def parseConditions(conditions, operator):
|
|||
conn.append(q)
|
||||
pass
|
||||
else:
|
||||
if condition.get('value', '') != '' or \
|
||||
condition.get('operator', '') == '=':
|
||||
conn.append(parseCondition(condition))
|
||||
conn.append(parseCondition(condition))
|
||||
if conn:
|
||||
q = conn[0]
|
||||
for c in conn[1:]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue