mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed #26492 -- Fixed "maximum recursion depth exceeded" migrate error.
A regression introduced in 0d3c616fbb2f49fa7ff6809e5a6777275352b35b; refs #26351.
This commit is contained in:
parent
3380169222
commit
93deb1691e
@ -59,7 +59,7 @@ class Command(BaseCommand):
|
||||
|
||||
def _run_checks(self, **kwargs):
|
||||
issues = run_checks(tags=[Tags.database])
|
||||
issues.extend(super(Command, self).check(**kwargs))
|
||||
issues.extend(super(Command, self)._run_checks(**kwargs))
|
||||
return issues
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
@ -53,6 +53,16 @@ class MigrateTests(MigrationTestBase):
|
||||
self.assertTableNotExists("migrations_tribble")
|
||||
self.assertTableNotExists("migrations_book")
|
||||
|
||||
@override_settings(INSTALLED_APPS=[
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'migrations.migrations_test_apps.migrated_app',
|
||||
])
|
||||
def test_migrate_with_system_checks(self):
|
||||
out = six.StringIO()
|
||||
call_command('migrate', skip_checks=False, no_color=True, stdout=out)
|
||||
self.assertIn('Apply all migrations: migrated_app', out.getvalue())
|
||||
|
||||
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations_initial_false"})
|
||||
def test_migrate_initial_false(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user