diff options
| author | Gabriel Muñumel <gabrielmunumel@gmail.com> | 2014-07-28 10:05:41 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-28 10:05:41 -0400 |
| commit | 0af593dbe5cae53543456fefb9ec9e2c8cc0146a (patch) | |
| tree | 8bb95889bb6493065373a25ed9eb069b949fb4ad /docs | |
| parent | 80708ac77204c491f86c6a8215aaba8cf0989154 (diff) | |
Fixed #23102 -- Documented that sql* commands now respect allow_migrate().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 7 | ||||
| -rw-r--r-- | docs/releases/1.7.txt | 5 |
2 files changed, 12 insertions, 0 deletions
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 <app_label app_label ...> ---------------------------------- diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 7bd13c6c12..95cf327279 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -1418,6 +1418,11 @@ Miscellaneous please update your settings to use ``None`` instead of ``0`` as the latter now designates set-and-expire in the settings as well. +* 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). + .. _deprecated-features-1.7: Features deprecated in 1.7 |
