mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Backport of b9cec9fa1f from master
			
			
This commit is contained in:
		| @@ -252,7 +252,8 @@ All attributes can be set in your derived class and can be used in | |||||||
| .. attribute:: BaseCommand.leave_locale_alone | .. attribute:: BaseCommand.leave_locale_alone | ||||||
|  |  | ||||||
|     A boolean indicating whether the locale set in settings should be preserved |     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``. |     Default value is ``False``. | ||||||
|  |  | ||||||
| @@ -260,9 +261,8 @@ All attributes can be set in your derived class and can be used in | |||||||
|     this option in your custom command if it creates database content that |     this option in your custom command if it creates database content that | ||||||
|     is locale-sensitive and such content shouldn't contain any translations |     is locale-sensitive and such content shouldn't contain any translations | ||||||
|     (like it happens e.g. with :mod:`django.contrib.auth` permissions) as |     (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 |     activating any locale might cause unintended effects. See the `Management | ||||||
|     unintended effects. See the `Management commands and locales`_ section |     commands and locales`_ section above for further details. | ||||||
|     above for further details. |  | ||||||
|  |  | ||||||
| .. attribute:: BaseCommand.style | .. attribute:: BaseCommand.style | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user