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
23c529a7
Kaydet (Commit)
23c529a7
authored
Tem 07, 2017
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Tem 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused Query.clone() memo kwarg.
Unused since
23ca3a01
.
üst
686772c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
query.py
django/db/models/sql/query.py
+3
-2
No files found.
django/db/models/sql/query.py
Dosyayı görüntüle @
23c529a7
...
...
@@ -241,7 +241,8 @@ class Query:
return
self
.
get_compiler
(
DEFAULT_DB_ALIAS
)
.
as_sql
()
def
__deepcopy__
(
self
,
memo
):
result
=
self
.
clone
(
memo
=
memo
)
"""Limit the amount of work when a Query is deepcopied."""
result
=
self
.
clone
()
memo
[
id
(
self
)]
=
result
return
result
...
...
@@ -263,7 +264,7 @@ class Query:
"""
return
self
.
model
.
_meta
def
clone
(
self
,
klass
=
None
,
memo
=
None
,
**
kwargs
):
def
clone
(
self
,
klass
=
None
,
**
kwargs
):
"""
Create a copy of the current instance. The 'kwargs' parameter can be
used by clients to update attributes after copying has taken place.
...
...
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