From 0af593dbe5cae53543456fefb9ec9e2c8cc0146a Mon Sep 17 00:00:00 2001 From: Gabriel Muñumel Date: Mon, 28 Jul 2014 10:05:41 -0400 Subject: Fixed #23102 -- Documented that sql* commands now respect allow_migrate(). --- docs/ref/django-admin.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 9a53627c28..bc0af9385d 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1050,6 +1050,13 @@ specify initial data. The :djadminopt:`--database` option can be used to specify the database for which to print the SQL. +.. versionchanged:: 1.7 + + The ``sql*`` management commands now respect the ``allow_migrate()`` method + of :setting:`DATABASE_ROUTERS`. If you have models synced to non-default + databases, use the :djadminopt:`--database` flag to get SQL for those + models (previously they would always be included in the output). + sqlclear ---------------------------------- -- cgit v1.3