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
c86e9b58
Kaydet (Commit)
c86e9b58
authored
Ock 02, 2018
tarafından
Mariusz Felisiak
Kaydeden (comit)
Tim Graham
Ock 02, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed DeferredAttribute.__init__()'s unused model argument.
Unused since
a8a81aae
.
üst
ab7f4c33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
proxy.py
django/contrib/gis/db/models/proxy.py
+1
-1
__init__.py
django/db/models/fields/__init__.py
+1
-1
query_utils.py
django/db/models/query_utils.py
+1
-1
No files found.
django/contrib/gis/db/models/proxy.py
Dosyayı görüntüle @
c86e9b58
...
...
@@ -17,7 +17,7 @@ class SpatialProxy(DeferredAttribute):
self
.
_field
=
field
self
.
_klass
=
klass
self
.
_load_func
=
load_func
or
klass
super
()
.
__init__
(
field
.
attname
,
klass
)
super
()
.
__init__
(
field
.
attname
)
def
__get__
(
self
,
instance
,
cls
=
None
):
"""
...
...
django/db/models/fields/__init__.py
Dosyayı görüntüle @
c86e9b58
...
...
@@ -719,7 +719,7 @@ class Field(RegisterLookupMixin):
# if you have a classmethod and a field with the same name, then
# such fields can't be deferred (we don't have a check for this).
if
not
getattr
(
cls
,
self
.
attname
,
None
):
setattr
(
cls
,
self
.
attname
,
DeferredAttribute
(
self
.
attname
,
cls
))
setattr
(
cls
,
self
.
attname
,
DeferredAttribute
(
self
.
attname
))
if
self
.
choices
:
setattr
(
cls
,
'get_
%
s_display'
%
self
.
name
,
partialmethod
(
cls
.
_get_FIELD_display
,
field
=
self
))
...
...
django/db/models/query_utils.py
Dosyayı görüntüle @
c86e9b58
...
...
@@ -115,7 +115,7 @@ class DeferredAttribute:
A wrapper for a deferred-loading field. When the value is read from this
object the first time, the query is executed.
"""
def
__init__
(
self
,
field_name
,
model
):
def
__init__
(
self
,
field_name
):
self
.
field_name
=
field_name
def
__get__
(
self
,
instance
,
cls
=
None
):
...
...
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