1
0
mirror of https://github.com/django/django.git synced 2024-12-25 10:35:48 +00:00

[1.8.x] Fixed allow_migrate() signature in router examples.

Backport of 937643a1f2 from master
This commit is contained in:
Adrian Andreias 2015-03-15 11:05:54 +02:00 committed by Tim Graham
parent 6dcbfc0700
commit 63b998a653

View File

@ -314,7 +314,7 @@ send queries for the ``auth`` app to ``auth_db``::
return True return True
return None return None
def allow_migrate(self, db, app_label, model, **hints): def allow_migrate(self, db, app_label, model=None, **hints):
""" """
Make sure the auth app only appears in the 'auth_db' Make sure the auth app only appears in the 'auth_db'
database. database.
@ -352,7 +352,7 @@ from::
return True return True
return None return None
def allow_migrate(self, db, app_label, model, **hints): def allow_migrate(self, db, app_label, model=None, **hints):
""" """
All non-auth models end up in this pool. All non-auth models end up in this pool.
""" """