1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #27142, #27110 -- Made makemigrations consistency checks respect database routers.

Partially reverted refs #27054 except for one of the tests as this
solution supersedes that one.

Thanks Shai Berger for the review.
This commit is contained in:
Tim Graham
2016-09-01 16:19:29 -04:00
committed by GitHub
parent 32c02f2a0e
commit 098c07a032
6 changed files with 48 additions and 29 deletions

View File

@@ -1,3 +1,7 @@
class EmptyRouter(object):
pass
class TestRouter(object):
def allow_migrate(self, db, app_label, model_name=None, **hints):
"""