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
38616697
Kaydet (Commit)
38616697
authored
Haz 12, 2014
tarafından
Andrew Godwin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test breakage from previous state fix
üst
7b17350a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
state.py
django/db/migrations/state.py
+6
-0
No files found.
django/db/migrations/state.py
Dosyayı görüntüle @
38616697
...
...
@@ -204,6 +204,12 @@ class ModelState(object):
options
[
name
]
=
set
(
normalize_together
(
it
))
else
:
options
[
name
]
=
model
.
_meta
.
original_attrs
[
name
]
# If we're ignoring relationships, remove all field-listing model
# options (that option basically just means "make a stub model")
if
exclude_rels
:
for
key
in
[
"unique_together"
,
"index_together"
,
"order_with_respect_to"
]:
if
key
in
options
:
del
options
[
key
]
def
flatten_bases
(
model
):
bases
=
[]
...
...
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