diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-08-08 08:51:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-08 08:51:20 +0200 |
| commit | 9fee229874367beafd532dad6d0f9ff9676ded0b (patch) | |
| tree | 0dab588f5c32a6885f74850716c1389f99181917 /django | |
| parent | 3767c7ff391d5f277e25bca38ef3730ddf9cea9c (diff) | |
Fixed #29643 -- Fixed crash when combining Q objects with __in lookups and lists.
Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/tree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/utils/tree.py b/django/utils/tree.py index 2a188acda7..421ad5cd3c 100644 --- a/django/utils/tree.py +++ b/django/utils/tree.py @@ -71,7 +71,10 @@ class Node: ) def __hash__(self): - return hash((self.__class__, self.connector, self.negated) + tuple(self.children)) + return hash((self.__class__, self.connector, self.negated) + tuple([ + tuple(child) if isinstance(child, list) else child + for child in self.children + ])) def add(self, data, conn_type, squash=True): """ |
