Loading django/db/utils.py +1 −8 Original line number Diff line number Diff line Loading @@ -318,15 +318,8 @@ 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) except AttributeError: # If the router doesn't have a method, skip to the next one. pass Loading Loading
django/db/utils.py +1 −8 Original line number Diff line number Diff line Loading @@ -318,15 +318,8 @@ 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) except AttributeError: # If the router doesn't have a method, skip to the next one. pass Loading