keys must be strings
This commit is contained in:
parent
4e324cef84
commit
5df4aea677
2 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ def parseCondition(condition, user):
|
|||
else: # default
|
||||
key = '%s__icontains'%k
|
||||
|
||||
key = str(key)
|
||||
if exclude:
|
||||
q = ~Q(**{key: v})
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue