summaryrefslogtreecommitdiff
path: root/tests/template_tests/filter_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34518 -- Fixed crash of random() template filter with an empty list.David Sanders2023-04-261-0/+5
|
* Fixed #34363 -- Fixed floatformat crash on zero with trailing zeros.Panagiotis H.M. Issaris2023-02-221-0/+4
| | | | Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124. Follow up to 4b066bde692078b194709d517b27e55defae787c.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-1/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Fixed #34272 -- Fixed floatformat crash on zero with trailing zeros to zero ↵David Wobrock2023-01-191-0/+2
| | | | | | | | decimal places. Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124. Thanks Andrii Lahuta for the report.
* Fixed #33879 -- Improved timesince handling of long intervals.GianpaoloBranca2023-01-041-0/+17
|
* Fixed #34098 -- Fixed loss of precision for Decimal values in floatformat ↵Vlastimil Zíma2022-10-241-0/+4
| | | | | filter. Regression in 12f7928f5a455e330c0a7f19bc86b37baca12811.
* Fixed #33864 -- Deprecated length_is template filter.Nick Pope2022-07-231-1/+18
|
* Fixed #33748 -- Fixed date template filter crash with lazy format.Claude Paroz2022-05-311-0/+5
| | | | Regression in 659d2421c7adbbcd205604002d521d82d6b0b465.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-0734-104/+269
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0759-1250/+1690
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-4/+3
| | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
* Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort ↵Florian Apolloner2022-01-042-2/+63
| | | | | | | | template filter. Thanks to Dennis Brinkrolf for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
* Fixed #33302 -- Made element_id optional argument for json_script template ↵Baptiste Mispelon2021-11-221-0/+5
| | | | | | filter. Added versionchanged note in documentation
* Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz2021-09-143-9/+4
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #30086, Refs #32873 -- Made floatformat template filter independent of ↵Mariusz Felisiak2021-09-081-2/+14
| | | | USE_L10N.
* Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments.David Smith2021-07-271-12/+12
| | | | | | This also removes unnecessary comments with the previous spelling. AP Stylebook has a short entry to advise the preferred spelling for "en-us". "Afterwards" is preferred in British English.
* Fixed #32208 -- Allowed adding lazy() objects.Hasan Ramezani2020-12-211-0/+17
| | | | Co-authored-by: Claude Paroz <claude@2xlibre.net>
* Fixed #20601 -- Allowed forcing format with thousand separators in ↵Jacob Walls2020-10-131-0/+15
| | | | | | floatformat filter. Thanks Claude Paroz and Nick Pope for reviews.
* Fixed #30761 -- Prevented floatformat filter from returning a negative zero.Sky2019-10-311-0/+10
|
* Added more tests for floatformat filter with negative values.Sky2019-10-311-0/+2
|
* Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when ↵Florian Apolloner2019-08-011-2/+2
| | | | | | truncating HTML. Thanks to Guido Vranken for initial report.
* Refs #27486 -- Added tests for filesizeformat filter.Jon Dufresne2019-06-111-0/+5
|
* Refs #27804 -- Used subTest() in filesizeformat tests and HumanizeTests.Jon Dufresne2019-06-101-30/+45
|
* Fixed #20122 -- Made pluralize template filter return '' on invalid input.Tobias Kunze2019-05-031-2/+3
|
* Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne2019-04-254-6/+6
| | | | html.escape()/unescape().
* Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak2019-03-034-4/+4
| | | | This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
* Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak2019-02-254-4/+4
|
* Added a urlize test for wrapping characters.Tim Graham2018-10-121-0/+18
|
* Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz2018-08-215-25/+25
| | | | | | dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
* Moved yesno filter test to its file.Hasan Ramezani2018-07-271-0/+9
|
* Fixed #29432 -- Allowed passing an integer to the slice template filter.ryabtsev2018-05-261-0/+3
|
* Fixed #29154 -- Corrected examples in pluralize docstring and added tests.Hasan Ramezani2018-02-231-0/+23
|
* Fixed #17419 -- Added json_tag template filter.Jonas Haag2018-02-071-0/+19
|
* Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne2018-01-212-15/+15
|
* Fixed #28662 -- Silenced join template filter error if arg isn't iterable.Mads Jensen2017-10-201-0/+8
|
* Refs #28711 -- Replaced ugettext_lazy() with gettext_lazy() in a test.Tim Graham2017-10-181-2/+2
| | | | As per c651331b34b7c3841c126959e6e52879bc6f0834.
* Fixed #28711 -- Fixed unordered_list template filter with lazy translations.Jonas Haag2017-10-181-0/+7
|
* Refs #23260 -- Tested nested generator input to unordered_list template filter.Jonas Haag2017-10-181-0/+14
|
* Completed test coverage for default template filters.Mads Jensen2017-09-3011-0/+57
|
* Refs #28502 -- Complemented stringformat tuple handling/test.Claude Paroz2017-08-221-0/+1
| | | An additional test and a code change were suggested in a late review.
* Fixed #28502 -- Made stringformat template filter accept tuplesSrinivas Reddy Thatiparthy2017-08-211-0/+2
|
* Refs #28502 -- Completed stringformat filter testsSrinivas Reddy Thatiparthy2017-08-191-0/+5
|
* Refs #23919 -- Used yield from.Vytis Banaitis2017-02-231-6/+2
|
* Removed unneeded force_text calls in the test suiteClaude Paroz2017-01-241-2/+1
|
* Added a missing floatformat test and simplified another.Tim Graham2017-01-211-6/+4
|
* Refs #23919 -- Removed str_prefix usageClaude Paroz2017-01-201-5/+4
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-3/+3
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-186-14/+8
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-3/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-1815-41/+0
|