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
dc5e75d4
Kaydet (Commit)
dc5e75d4
authored
Eki 16, 2018
tarafından
aspalding
Kaydeden (comit)
Tim Graham
Eki 17, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and lists.
Regression in
fc6528b2
.
üst
217f82d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
tree.py
django/utils/tree.py
+3
-4
2.1.3.txt
docs/releases/2.1.3.txt
+3
-3
test_tree.py
tests/utils_tests/test_tree.py
+3
-0
No files found.
django/utils/tree.py
Dosyayı görüntüle @
dc5e75d4
...
@@ -5,6 +5,8 @@ ORM.
...
@@ -5,6 +5,8 @@ ORM.
import
copy
import
copy
from
django.utils.hashable
import
make_hashable
class
Node
:
class
Node
:
"""
"""
...
@@ -71,10 +73,7 @@ class Node:
...
@@ -71,10 +73,7 @@ class Node:
)
)
def
__hash__
(
self
):
def
__hash__
(
self
):
return
hash
((
self
.
__class__
,
self
.
connector
,
self
.
negated
,
*
[
return
hash
((
self
.
__class__
,
self
.
connector
,
self
.
negated
,
*
make_hashable
(
self
.
children
)))
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.3.txt
Dosyayı görüntüle @
dc5e75d4
...
@@ -4,9 +4,10 @@ Django 2.1.3 release notes
...
@@ -4,9 +4,10 @@ Django 2.1.3 release notes
*Expected November 1, 2018*
*Expected November 1, 2018*
Django 2.1.3 fixes several bugs in 2.1.2
Django 2.1.3 fixes several bugs in 2.1.2
.
Bugfixes
Bugfixes
========
========
* ...
* Fixed a regression in Django 2.0 where combining ``Q`` objects with ``__in``
\ No newline at end of file
lookups and lists crashed (:ticket:`29838`).
tests/utils_tests/test_tree.py
Dosyayı görüntüle @
dc5e75d4
...
@@ -24,12 +24,15 @@ class NodeTests(unittest.TestCase):
...
@@ -24,12 +24,15 @@ class NodeTests(unittest.TestCase):
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
]])
node6
=
Node
([[
'a'
,
1
],
[
'b'
,
2
]])
node7
=
Node
([(
'a'
,
[
1
,
2
])])
node8
=
Node
([(
'a'
,
(
1
,
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
.
node1
),
hash
(
node6
))
self
.
assertEqual
(
hash
(
self
.
node2
),
hash
(
Node
()))
self
.
assertEqual
(
hash
(
self
.
node2
),
hash
(
Node
()))
self
.
assertEqual
(
hash
(
node7
),
hash
(
node8
))
def
test_len
(
self
):
def
test_len
(
self
):
self
.
assertEqual
(
len
(
self
.
node1
),
2
)
self
.
assertEqual
(
len
(
self
.
node1
),
2
)
...
...
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