diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-18 11:27:38 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 07:39:46 -0500 |
| commit | d79a30ba3f991bc3150fa1260fab1c10f5d3450a (patch) | |
| tree | 31d514066922abb1fa7743b1752a61b7749923a4 /django/db/utils.py | |
| parent | b952c3fc606ed01c6d0ff26451b6e2acf1b91ca5 (diff) | |
Removed fallback suport for allow_syncdb() in database routers per deprecation timeline.
Diffstat (limited to 'django/db/utils.py')
| -rw-r--r-- | django/db/utils.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index fc2203ff47..f6e5a9b0f8 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -319,14 +319,7 @@ class ConnectionRouter(object): def allow_migrate(self, db, model, **hints): for router in self.routers: try: - 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. ' - 'Rename the method to allow_migrate.', - RemovedInDjango19Warning, stacklevel=2) + method = router.allow_migrate except AttributeError: # If the router doesn't have a method, skip to the next one. pass |
