Loading docs/ref/django-admin.txt +7 −0 Original line number Diff line number Diff line Loading @@ -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 ...> ---------------------------------- Loading docs/releases/1.7.txt +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
docs/ref/django-admin.txt +7 −0 Original line number Diff line number Diff line Loading @@ -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 ...> ---------------------------------- Loading
docs/releases/1.7.txt +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading