diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index bfd6d791fd..f656c3703e 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1044,6 +1044,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 <app_label app_label ...> ---------------------------------- |
