Commit 25084101 authored by Marc Tamlyn's avatar Marc Tamlyn
Browse files

Raise (pending) deprecation warning for allow_syncdb.

parent 2085f53f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.