Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
9fee2298
Unverified
Kaydet (Commit)
9fee2298
authored
Agu 08, 2018
tarafından
Mariusz Felisiak
Kaydeden (comit)
GitHub
Agu 08, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #29643 -- Fixed crash when combining Q objects with __in lookups and lists.
Regression in
fc6528b2
.
üst
3767c7ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
tree.py
django/utils/tree.py
+4
-1
2.1.1.txt
docs/releases/2.1.1.txt
+3
-0
test_tree.py
tests/utils_tests/test_tree.py
+2
-0
No files found.
django/utils/tree.py
Dosyayı görüntüle @
9fee2298
...
@@ -71,7 +71,10 @@ class Node:
...
@@ -71,7 +71,10 @@ class Node:
)
)
def
__hash__
(
self
):
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
):
def
add
(
self
,
data
,
conn_type
,
squash
=
True
):
"""
"""
...
...
docs/releases/2.1.1.txt
Dosyayı görüntüle @
9fee2298
...
@@ -18,3 +18,6 @@ Bugfixes
...
@@ -18,3 +18,6 @@ Bugfixes
* Fixed a regression in Django 2.0 where using ``manage.py test --keepdb``
* Fixed a regression in Django 2.0 where using ``manage.py test --keepdb``
fails on PostgreSQL if the database exists and the user doesn't have
fails on PostgreSQL if the database exists and the user doesn't have
permission to create databases (:ticket:`29613`).
permission to create databases (:ticket:`29613`).
* Fixed a regression in Django 2.0 where combining ``Q`` objects with ``__in``
lookups and lists crashed (:ticket:`29643`).
tests/utils_tests/test_tree.py
Dosyayı görüntüle @
9fee2298
...
@@ -23,10 +23,12 @@ class NodeTests(unittest.TestCase):
...
@@ -23,10 +23,12 @@ class NodeTests(unittest.TestCase):
node3
=
Node
(
self
.
node1_children
,
negated
=
True
)
node3
=
Node
(
self
.
node1_children
,
negated
=
True
)
node4
=
Node
(
self
.
node1_children
,
connector
=
'OTHER'
)
node4
=
Node
(
self
.
node1_children
,
connector
=
'OTHER'
)
node5
=
Node
(
self
.
node1_children
)
node5
=
Node
(
self
.
node1_children
)
node6
=
Node
([[
'a'
,
1
],
[
'b'
,
2
]])
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
self
.
node2
))
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
self
.
node2
))
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
node3
))
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
node3
))
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
node4
))
self
.
assertNotEqual
(
hash
(
self
.
node1
),
hash
(
node4
))
self
.
assertEqual
(
hash
(
self
.
node1
),
hash
(
node5
))
self
.
assertEqual
(
hash
(
self
.
node1
),
hash
(
node5
))
self
.
assertEqual
(
hash
(
self
.
node1
),
hash
(
node6
))
self
.
assertEqual
(
hash
(
self
.
node2
),
hash
(
Node
()))
self
.
assertEqual
(
hash
(
self
.
node2
),
hash
(
Node
()))
def
test_len
(
self
):
def
test_len
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment