1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.

This commit is contained in:
django-bot
2023-02-28 20:53:28 +01:00
committed by Mariusz Felisiak
parent 6015bab80e
commit 14459f80ee
193 changed files with 5797 additions and 4481 deletions

View File

@@ -43,8 +43,8 @@ To enable a form field to localize input and output data use its ``localize``
argument::
class CashRegisterForm(forms.Form):
product = forms.CharField()
revenue = forms.DecimalField(max_digits=4, decimal_places=2, localize=True)
product = forms.CharField()
revenue = forms.DecimalField(max_digits=4, decimal_places=2, localize=True)
.. _topic-l10n-templates:
@@ -150,8 +150,8 @@ first. To do that, set your :setting:`FORMAT_MODULE_PATH` setting to the
package where format files will exist, for instance::
FORMAT_MODULE_PATH = [
'mysite.formats',
'some_app.formats',
"mysite.formats",
"some_app.formats",
]
Files are not placed directly in this directory, but in a directory named as
@@ -173,7 +173,7 @@ To customize the English formats, a structure like this would be needed:
where :file:`formats.py` contains custom format definitions. For example::
THOUSAND_SEPARATOR = '\xa0'
THOUSAND_SEPARATOR = "\xa0"
to use a non-breaking space (Unicode ``00A0``) as a thousand separator,
instead of the default for English, a comma.