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
e1b93dbb
Kaydet (Commit)
e1b93dbb
authored
Ock 17, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed deprecated aliases in django.db.models.
üst
2b4ca2ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
__init__.py
django/db/models/__init__.py
+0
-26
No files found.
django/db/models/__init__.py
Dosyayı görüntüle @
e1b93dbb
from
functools
import
wraps
import
sys
import
warnings
from
django.core.exceptions
import
ObjectDoesNotExist
,
ImproperlyConfigured
# NOQA
from
django.db.models.query
import
Q
,
QuerySet
,
Prefetch
# NOQA
...
...
@@ -19,7 +17,6 @@ from django.db.models.deletion import ( # NOQA
CASCADE
,
PROTECT
,
SET
,
SET_NULL
,
SET_DEFAULT
,
DO_NOTHING
,
ProtectedError
)
from
django.db.models.lookups
import
Lookup
,
Transform
# NOQA
from
django.db.models
import
signals
# NOQA
from
django.utils.deprecation
import
RemovedInDjango19Warning
def
permalink
(
func
):
...
...
@@ -39,26 +36,3 @@ def permalink(func):
bits
=
func
(
*
args
,
**
kwargs
)
return
reverse
(
bits
[
0
],
None
,
*
bits
[
1
:
3
])
return
inner
# Deprecated aliases for functions were exposed in this module.
def
make_alias
(
function_name
):
# Close function_name.
def
alias
(
*
args
,
**
kwargs
):
warnings
.
warn
(
"django.db.models.
%
s is deprecated."
%
function_name
,
RemovedInDjango19Warning
,
stacklevel
=
2
)
# This raises a second warning.
from
.
import
loading
return
getattr
(
loading
,
function_name
)(
*
args
,
**
kwargs
)
alias
.
__name__
=
function_name
return
alias
this_module
=
sys
.
modules
[
'django.db.models'
]
for
function_name
in
(
'get_apps'
,
'get_app_path'
,
'get_app_paths'
,
'get_app'
,
'get_models'
,
'get_model'
,
'register_models'
):
setattr
(
this_module
,
function_name
,
make_alias
(
function_name
))
del
this_module
,
make_alias
,
function_name
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