diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-02-09 11:40:23 +0000 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-02-09 11:42:34 +0000 |
| commit | 250841017c6c456806cadd214b4e130aa998233d (patch) | |
| tree | f726a1baf39c47e4fdea19722a6d0aaa9fc1bf10 | |
| parent | 2085f53f567f7619ecf3eab93fdacab7a5991a11 (diff) | |
Raise (pending) deprecation warning for allow_syncdb.
| -rw-r--r-- | django/db/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index 51d2ffcba0..0be6d6a7cb 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -268,6 +268,10 @@ class ConnectionRouter(object): try: method = router.allow_migrate except AttributeError: + warnings.warn( + '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. |
