From d79a30ba3f991bc3150fa1260fab1c10f5d3450a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 18 Nov 2014 11:27:38 -0500 Subject: [PATCH] Removed fallback suport for allow_syncdb() in database routers per deprecation timeline. --- django/db/utils.py | 9 +-------- 1 file changed, 1 insertion(+), 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