summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/db/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index 475edae033..4ce7030eb3 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -333,7 +333,7 @@ class ConnectionRouter(object):
# If the router doesn't have a method, skip to the next one.
continue
- argspec = inspect.getargspec(router.allow_migrate)
+ argspec = inspect.getargspec(method)
if len(argspec.args) == 3 and not argspec.keywords:
warnings.warn(
"The signature of allow_migrate has changed from "