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
9ab1d555
Unverified
Kaydet (Commit)
9ab1d555
authored
Mar 28, 2019
tarafından
Mariusz Felisiak
Kaydeden (comit)
GitHub
Mar 28, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #18726 -- Added test for excluding circular related fields with F() expression.
Fixed in
f19a4945
.
üst
398afba0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests.py
tests/queries/tests.py
+3
-0
No files found.
tests/queries/tests.py
Dosyayı görüntüle @
9ab1d555
...
@@ -2782,6 +2782,9 @@ class ExcludeTests(TestCase):
...
@@ -2782,6 +2782,9 @@ class ExcludeTests(TestCase):
annotation
=
Annotation
.
objects
.
create
(
name
=
'annotation'
,
tag
=
tag
)
annotation
=
Annotation
.
objects
.
create
(
name
=
'annotation'
,
tag
=
tag
)
self
.
assertEqual
(
Annotation
.
objects
.
exclude
(
tag__note__note
=
F
(
'name'
))
.
get
(),
annotation
)
self
.
assertEqual
(
Annotation
.
objects
.
exclude
(
tag__note__note
=
F
(
'name'
))
.
get
(),
annotation
)
def
test_exclude_with_circular_fk_relation
(
self
):
self
.
assertEqual
(
ObjectB
.
objects
.
exclude
(
objecta__objectb__name
=
F
(
'name'
))
.
count
(),
0
)
class
ExcludeTest17600
(
TestCase
):
class
ExcludeTest17600
(
TestCase
):
"""
"""
...
...
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