Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #32873 -- Removed settings.USE_L10N per deprecation timeline. | Mariusz Felisiak | 2023-01-17 | 1 | -13/+7 |
| | |||||
* | Simplified django.utils.formats.date_format()/time_format() calls. | Nick Pope | 2023-01-04 | 1 | -1/+1 |
| | | | | | This removes redundant get_format() calls and passing a default value for the format argument. | ||||
* | Fixed #33748 -- Fixed date template filter crash with lazy format. | Claude Paroz | 2022-05-31 | 1 | -0/+1 |
| | | | | Regression in 659d2421c7adbbcd205604002d521d82d6b0b465. | ||||
* | Refs #32873 -- Avoided looking up settings._USE_L10N_INTERNAL twice. | Collin Anderson | 2022-02-22 | 1 | -16/+10 |
| | |||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -1/+2 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -62/+80 |
| | |||||
* | Refs #32355 -- Used @functools.lru_cache as a straight decorator. | Mariusz Felisiak | 2021-09-27 | 1 | -1/+1 |
| | |||||
* | Fixed #32873 -- Deprecated settings.USE_L10N. | Claude Paroz | 2021-09-14 | 1 | -2/+10 |
| | | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #32941 -- Removed get_format_modules()'s unused reverse argument. | Keryn Knight | 2021-07-19 | 1 | -5/+2 |
| | | | | Unused since 0d8b523422fda71baa10807d5aebefd34bad7962. | ||||
* | Fixed #32810 -- Optimized django.utils.formats.number_format() a bit. | Mateo Radman | 2021-06-05 | 1 | -4/+2 |
| | | | | Pre-calculate use_l10n for get_format() calls. | ||||
* | Refs #32738 -- Added sanitize_strftime_format() to replace datetime_safe. | Nick Pope | 2021-05-12 | 1 | -3/+38 |
| | |||||
* | Fixed #30134 -- Ensured unlocalized numbers are string representation in ↵ | Claude Paroz | 2020-06-04 | 1 | -0/+2 |
| | | | | templates. | ||||
* | Fixed #29578 -- Made numberformat.format() honor forced l10n usage. | Claude Paroz | 2018-07-19 | 1 | -1/+2 |
| | | | Thanks Sassan Haradji for the report. | ||||
* | Refs #14807 -- Removed unneeded mark_safe call | Claude Paroz | 2017-10-22 | 1 | -2/+1 |
| | |||||
* | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | 2017-09-07 | 1 | -3/+6 |
| | | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | ||||
* | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | 2017-06-28 | 1 | -12/+6 |
| | |||||
* | Fixed #28249 -- Removed unnecessary dict.keys() calls. | Jon Dufresne | 2017-05-27 | 1 | -1/+1 |
| | | | iter(dict) is equivalent to iter(dict.keys()). | ||||
* | Fixed #22654 -- Broken decimal validation | Raphael Michel | 2017-04-07 | 1 | -1/+1 |
| | |||||
* | Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-11 | 1 | -20/+16 |
| | |||||
* | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | 2017-01-20 | 1 | -5/+3 |
| | |||||
* | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | 2017-01-18 | 1 | -10/+10 |
| | | | | Thanks Tim Graham and Simon Charette for the reviews. | ||||
* | Fixed #25753 -- Made get_format() cache the formats from Django settings | Jaap Roes | 2016-12-21 | 1 | -26/+34 |
| | |||||
* | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | 2016-11-14 | 1 | -0/+1 |
| | |||||
* | Fixed #26173 -- Prevented localize_input() from formatting booleans as numbers. | Marcin Markiewicz | 2016-02-09 | 1 | -0/+2 |
| | |||||
* | Replaced dict.setdefault() usage to avoid unnecessary object instantiations. | Benjamin Bach | 2016-01-05 | 1 | -1/+3 |
| | |||||
* | Fixed #25812 -- Restored the ability to use custom formats with the date ↵ | Gagaro | 2015-11-28 | 1 | -5/+3 |
| | | | | template filter. | ||||
* | Fixed a settings leak possibility in the date template filter. | Florian Apolloner | 2015-11-24 | 1 | -0/+20 |
| | | | | This is a security fix. | ||||
* | Fixed #25743 -- Optimized utils.localize() and localize_input() | Jaap Roes | 2015-11-12 | 1 | -4/+7 |
| | | | | Bail early if the input is a string since that's the most common case. | ||||
* | Removed some obsolete absolute_imports. | Tim Graham | 2015-02-09 | 1 | -3/+0 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -6/+8 |
| | |||||
* | Fixed #24149 -- Normalized tuple settings to lists. | darkryder | 2015-02-03 | 1 | -4/+4 |
| | |||||
* | Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282. | Thomas Chaumeny | 2014-09-29 | 1 | -2/+2 |
| | | | | Thanks Collin Anderson for the review. | ||||
* | Fixed #22171 -- Improved sanitize_separators cleverness | Claude Paroz | 2014-08-18 | 1 | -3/+7 |
| | | | | | Thanks Klaas van Schelven for the report and Tim Graham for the review. | ||||
* | Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATH | Martin Brochhaus | 2014-05-21 | 1 | -15/+23 |
| | | | | | | | | | Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). A feature has been added to also allow a list of strings. This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module. | ||||
* | Revert "Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of ↵ | Tim Graham | 2014-05-19 | 1 | -9/+4 |
| | | | | | | modules." This reverts commit 950b6de16ac2f8135612f2ed5984c090dd8e4dcf. | ||||
* | Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of modules. | Martin Brochhaus | 2014-05-19 | 1 | -4/+9 |
| | | | | | | | | | Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module. | ||||
* | Correct flake8 E302 violations | Ray Ashman Jr | 2013-11-02 | 1 | -0/+10 |
| | |||||
* | Moved a settings usage up the stack in utils/formats.py #unsettings | Adrian Holovaty | 2013-09-06 | 1 | -4/+4 |
| | |||||
* | Avoid importing the deprecated `django.utils.importlib` package. | Simon Charette | 2013-08-19 | 1 | -0/+2 |
| | |||||
* | Deprecated django.utils.importlib | Claude Paroz | 2013-07-29 | 1 | -2/+2 |
| | | | | This was a shim for pre-Python 2.7 support. | ||||
* | Fixed #19917 -- Added microseconds in default TIME_INPUT_FORMATS | Claude Paroz | 2013-03-02 | 1 | -1/+1 |
| | | | | Thanks minddust for the report. | ||||
* | Improved input sanitizing with thousand separators | Claude Paroz | 2013-02-15 | 1 | -11/+13 |
| | | | | | | | For languages with non-breaking space as thousand separator, standard space input should also be allowed, as few people know how to enter non-breaking space on keyboards. Refs #17217. Thanks Alexey Boriskin for the report and initial patch. | ||||
* | Fixed #19015 -- Add ISO input formats to all formats | Claude Paroz | 2012-12-01 | 1 | -0/+16 |
| | |||||
* | Replaced some smart_xxx by force_xxx equivalent | Claude Paroz | 2012-08-30 | 1 | -5/+5 |
| | | | | | smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call. | ||||
* | [py3] Replaced unicode/str by six.text_type/bytes. | Aymeric Augustin | 2012-07-22 | 1 | -2/+2 |
| | |||||
* | [py3] Replaced basestring by six.string_types. | Aymeric Augustin | 2012-07-22 | 1 | -1/+1 |
| | |||||
* | [py3] Removed longs. | Aymeric Augustin | 2012-07-22 | 1 | -2/+3 |
| | |||||
* | Fixed 16938 -- Ensured that the active locale's formats take precedence over ↵ | Julien Phalip | 2011-10-20 | 1 | -1/+6 |
| | | | | | | the default settings even if they would be interpreted as False in a conditional test (e.g. 0 or empty string). Thanks to pikerr for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17017 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | ||||
* | Fixed #16909 -- Pass language to get_format_modules when calling it from ↵ | Jannis Leidel | 2011-09-22 | 1 | -3/+4 |
| | | | | | | get_format to make sure the correct module is returned. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16884 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | ||||
* | Fixed #16404 -- Fixed a regression in the localization changes in the ↵ | Jannis Leidel | 2011-09-08 | 1 | -1/+2 |
| | | | | | | humanize app made in r16168. Thanks, grepsd@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16726 bcc190cf-cafb-0310-a4f2-bffc1f526a37 |