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
fc32e9c0
Kaydet (Commit)
fc32e9c0
authored
May 08, 2014
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused imports in makemigrations
üst
b25aee3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
makemigrations.py
django/core/management/commands/makemigrations.py
+2
-3
No files found.
django/core/management/commands/makemigrations.py
Dosyayı görüntüle @
fc32e9c0
...
@@ -5,8 +5,7 @@ from optparse import make_option
...
@@ -5,8 +5,7 @@ from optparse import make_option
from
django.apps
import
apps
from
django.apps
import
apps
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.db
import
connections
,
DEFAULT_DB_ALIAS
,
migrations
from
django.db.migrations
import
Migration
from
django.db.migrations.migration
import
Migration
from
django.db.migrations.loader
import
MigrationLoader
from
django.db.migrations.loader
import
MigrationLoader
from
django.db.migrations.autodetector
import
MigrationAutodetector
from
django.db.migrations.autodetector
import
MigrationAutodetector
from
django.db.migrations.questioner
import
MigrationQuestioner
,
InteractiveMigrationQuestioner
from
django.db.migrations.questioner
import
MigrationQuestioner
,
InteractiveMigrationQuestioner
...
@@ -194,7 +193,7 @@ class Command(BaseCommand):
...
@@ -194,7 +193,7 @@ class Command(BaseCommand):
biggest_number
=
max
([
x
for
x
in
numbers
if
x
is
not
None
])
biggest_number
=
max
([
x
for
x
in
numbers
if
x
is
not
None
])
except
ValueError
:
except
ValueError
:
biggest_number
=
1
biggest_number
=
1
subclass
=
type
(
"Migration"
,
(
migrations
.
Migration
,
),
{
subclass
=
type
(
"Migration"
,
(
Migration
,
),
{
"dependencies"
:
[(
app_label
,
migration
.
name
)
for
migration
in
merge_migrations
],
"dependencies"
:
[(
app_label
,
migration
.
name
)
for
migration
in
merge_migrations
],
})
})
new_migration
=
subclass
(
"
%04
i_merge"
%
(
biggest_number
+
1
),
app_label
)
new_migration
=
subclass
(
"
%04
i_merge"
%
(
biggest_number
+
1
),
app_label
)
...
...
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