Permalink
Browse files

[1.11.x] Fixed #29017 -- Updated BaseCommand.leave_locale_alone doc p…

…er refs #24073.

Backport of b9cec9f from master
  • Loading branch information...
1 parent bb39e4b commit ced0b1edef6743012c8e17d447b701006758c52e @timgraham timgraham committed Jan 12, 2018
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/howto/custom-management-commands.txt
@@ -259,17 +259,17 @@ All attributes can be set in your derived class and can be used in
.. attribute:: BaseCommand.leave_locale_alone
A boolean indicating whether the locale set in settings should be preserved
- during the execution of the command instead of being forcibly set to 'en-us'.
+ during the execution of the command instead of translations being
+ deactivated.
Default value is ``False``.
Make sure you know what you are doing if you decide to change the value of
this option in your custom command if it creates database content that
is locale-sensitive and such content shouldn't contain any translations
(like it happens e.g. with :mod:`django.contrib.auth` permissions) as
- making the locale differ from the de facto default 'en-us' might cause
- unintended effects. See the `Management commands and locales`_ section
- above for further details.
+ activating any locale might cause unintended effects. See the `Management
+ commands and locales`_ section above for further details.
.. attribute:: BaseCommand.style

0 comments on commit ced0b1e

Please sign in to comment.