summaryrefslogtreecommitdiff
path: root/django/db/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/utils.py')
-rw-r--r--django/db/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index 0be6d6a7cb..b7303351d9 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -268,11 +268,11 @@ class ConnectionRouter(object):
try:
method = router.allow_migrate
except AttributeError:
+ method = router.allow_syncdb
warnings.warn(
- 'Router.allow_syncdb has been deprecated and will stop working in Django 1.9.'
+ 'Router.allow_syncdb has been deprecated and will stop working in Django 1.9. '
'Rename the method to allow_migrate.',
PendingDeprecationWarning, stacklevel=2)
- method = router.allow_syncdb
except AttributeError:
# If the router doesn't have a method, skip to the next one.
pass