Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix router examples allow_migrate crash #4320

Closed
wants to merge 1 commit into from

Conversation

adrianandreias
Copy link
Contributor

allow_migrate requires model parameter to have default value None, as described in reference documentation (same file but before examples):
https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#allow_migrate

Otherwise it crashes with error:

File "c:...\site-packages\django\db\utils.py", line 347, in allow_migrate
allow = method(db, app_label, **hints)
TypeError: allow_migrate() takes exactly 4 arguments (3 given)

allow_migrate requires model parameter to have default value None, as described in reference documentation (same file but before examples):
https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#allow_migrate

Otherwise it crashes with error:

File "c:\...\site-packages\django\db\utils.py", line 347, in allow_migrate
    allow = method(db, app_label, **hints)
TypeError: allow_migrate() takes exactly 4 arguments (3 given)
@timgraham
Copy link
Member

merged in 937643a, thanks.

@timgraham timgraham closed this Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants