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
12c72796
Kaydet (Commit)
12c72796
authored
May 20, 2014
tarafından
Andrew Godwin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "Fixed #22645: Allow apps with no models module to still have migrations"
This reverts commit
a4737bf6
.
üst
03900a02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
loader.py
django/db/migrations/loader.py
+2
-1
No files found.
django/db/migrations/loader.py
Dosyayı görüntüle @
12c72796
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
from
importlib
import
import_module
from
importlib
import
import_module
...
@@ -63,6 +62,8 @@ class MigrationLoader(object):
...
@@ -63,6 +62,8 @@ class MigrationLoader(object):
self
.
unmigrated_apps
=
set
()
self
.
unmigrated_apps
=
set
()
self
.
migrated_apps
=
set
()
self
.
migrated_apps
=
set
()
for
app_config
in
apps
.
get_app_configs
():
for
app_config
in
apps
.
get_app_configs
():
if
app_config
.
models_module
is
None
:
continue
# Get the migrations module directory
# Get the migrations module directory
module_name
=
self
.
migrations_module
(
app_config
.
label
)
module_name
=
self
.
migrations_module
(
app_config
.
label
)
was_loaded
=
module_name
in
sys
.
modules
was_loaded
=
module_name
in
sys
.
modules
...
...
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