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
733c7c70
Kaydet (Commit)
733c7c70
authored
Ara 31, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #24716 -- Removed Field._get_val_from_obj() per deprecation timeline.
üst
ad393bee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
__init__.py
django/db/models/fields/__init__.py
+1
-13
2.0.txt
docs/releases/2.0.txt
+2
-0
No files found.
django/db/models/fields/__init__.py
Dosyayı görüntüle @
733c7c70
...
...
@@ -27,9 +27,7 @@ from django.utils.datastructures import DictWrapper
from
django.utils.dateparse
import
(
parse_date
,
parse_datetime
,
parse_duration
,
parse_time
,
)
from
django.utils.deprecation
import
(
RemovedInDjango20Warning
,
warn_about_renamed_method
,
)
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
django.utils.duration
import
duration_string
from
django.utils.encoding
import
(
force_bytes
,
force_text
,
python_2_unicode_compatible
,
smart_text
,
...
...
@@ -810,16 +808,6 @@ class Field(RegisterLookupMixin):
limit_choices_to
)]
return
first_choice
+
lst
@warn_about_renamed_method
(
'Field'
,
'_get_val_from_obj'
,
'value_from_object'
,
RemovedInDjango20Warning
)
def
_get_val_from_obj
(
self
,
obj
):
if
obj
is
not
None
:
return
getattr
(
obj
,
self
.
attname
)
else
:
return
self
.
get_default
()
def
value_to_string
(
self
,
obj
):
"""
Returns a string value of this field from the passed obj.
...
...
docs/releases/2.0.txt
Dosyayı görüntüle @
733c7c70
...
...
@@ -299,3 +299,5 @@ these features.
* Support for setting a URL instance namespace without an application namespace
is removed.
* ``Field._get_val_from_obj()`` is removed.
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