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
625e9da9
Kaydet (Commit)
625e9da9
authored
Ara 16, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed Field.rel and Field.remote_field.to per deprecation timeline.
üst
0f454f5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
18 deletions
+2
-18
__init__.py
django/db/models/fields/__init__.py
+0
-7
reverse_related.py
django/db/models/fields/reverse_related.py
+0
-11
2.0.txt
docs/releases/2.0.txt
+2
-0
No files found.
django/db/models/fields/__init__.py
Dosyayı görüntüle @
625e9da9
...
...
@@ -251,13 +251,6 @@ class Field(RegisterLookupMixin):
else
:
return
[]
@property
def
rel
(
self
):
warnings
.
warn
(
"Usage of field.rel has been deprecated. Use field.remote_field instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
remote_field
def
_check_choices
(
self
):
if
self
.
choices
:
if
(
isinstance
(
self
.
choices
,
six
.
string_types
)
or
...
...
django/db/models/fields/reverse_related.py
Dosyayı görüntüle @
625e9da9
...
...
@@ -11,10 +11,7 @@ they're the closest concept currently available.
from
__future__
import
unicode_literals
import
warnings
from
django.core
import
exceptions
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
django.utils.encoding
import
force_text
from
django.utils.functional
import
cached_property
...
...
@@ -56,14 +53,6 @@ class ForeignObjectRel(object):
# __init__ as the field doesn't have its model yet. Calling these methods
# before field.contribute_to_class() has been called will result in
# AttributeError
@property
def
to
(
self
):
warnings
.
warn
(
"Usage of ForeignObjectRel.to attribute has been deprecated. "
"Use the model attribute instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
model
@cached_property
def
hidden
(
self
):
return
self
.
is_hidden
()
...
...
docs/releases/2.0.txt
Dosyayı görüntüle @
625e9da9
...
...
@@ -247,3 +247,5 @@ these features.
* The ``host`` argument to ``SimpleTestCase.assertsRedirects()`` is removed.
The compatibility layer which allows absolute URLs to be considered equal to
relative ones when the path is identical is also removed.
* ``Field.rel`` and ``Field.remote_field.to`` are 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