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
8377a98c
Kaydet (Commit)
8377a98c
authored
Ock 22, 2017
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed obsolete force_text_recursive
üst
6e55e1d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
state.py
django/db/migrations/state.py
+0
-17
No files found.
django/db/migrations/state.py
Dosyayı görüntüle @
8377a98c
...
...
@@ -454,8 +454,6 @@ class ModelState:
options
[
name
]
=
set
(
normalize_together
(
it
))
else
:
options
[
name
]
=
model
.
_meta
.
original_attrs
[
name
]
# Force-convert all options to str (#23226)
options
=
cls
.
force_text_recursive
(
options
)
# If we're ignoring relationships, remove all field-listing model
# options (that option basically just means "make a stub model")
if
exclude_rels
:
...
...
@@ -533,21 +531,6 @@ class ModelState:
managers
,
)
@classmethod
def
force_text_recursive
(
cls
,
value
):
if
isinstance
(
value
,
list
):
return
[
cls
.
force_text_recursive
(
x
)
for
x
in
value
]
elif
isinstance
(
value
,
tuple
):
return
tuple
(
cls
.
force_text_recursive
(
x
)
for
x
in
value
)
elif
isinstance
(
value
,
set
):
return
set
(
cls
.
force_text_recursive
(
x
)
for
x
in
value
)
elif
isinstance
(
value
,
dict
):
return
{
cls
.
force_text_recursive
(
k
):
cls
.
force_text_recursive
(
v
)
for
k
,
v
in
value
.
items
()
}
return
value
def
construct_managers
(
self
):
"Deep-clone the managers using deconstruction"
# Sort all managers by their creation counter
...
...
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