| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-06-04 | Refs #27804 -- Used subTest() in tests.utils_tests.test_text. | Jon Dufresne | |
| 2020-05-29 | Fixed #28694 -- Made django.utils.text.slugify() strip dashes and underscores. | David Smith | |
| 2020-05-29 | Added more tests for slugify(). | David Smith | |
| 2020-04-20 | Capitalized Unicode in docs, strings, and comments. | Jon Dufresne | |
| 2019-12-30 | Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ". | Sjbrgsn | |
| Thanks Luis Nell for the implementation idea and very detailed report. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2019-08-01 | Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when ↵ | Florian Apolloner | |
| truncating HTML. Thanks to Guido Vranken for initial report. | |||
| 2019-06-28 | Fixed #30400 -- Improved typography of user facing strings. | Jon Dufresne | |
| Thanks Claude Paroz for assistance with translations. | |||
| 2019-05-08 | Refs #27753 -- Deprecated django.utils.text.unescape_entities(). | Jon Dufresne | |
| The function was undocumented and only required for compatibility with Python 2. Code should use Python's html.unescape() that was added in Python 3.4. | |||
| 2019-01-23 | Completed test coverage for utils.text._replace_entity(). | Hasan Ramezani | |
| 2019-01-19 | Completed test coverage for utils.text.Truncator.chars(). | Hasan Ramezani | |
| 2018-08-21 | Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵ | Claude Paroz | |
| dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review. | |||
| 2018-07-20 | Fixed #29412 -- Stopped marking slugify() result as HTML safe. | Claude Paroz | |
| 2018-03-06 | Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in ↵ | Tim Graham | |
| django.utils.text.Truncator. Thanks James Davis for suggesting the fix. | |||
| 2017-04-04 | Updated tests after French translation update | Claude Paroz | |
| 2017-03-04 | Refs #27795 -- Removed unneeded force_text calls | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-09 | Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode(). | Tim Graham | |
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-24 | Fixed #26866 -- Added format_lazy function | Mattias Loverot | |
| Added format_lazy function to django.utils.text module. Useful when dealing with relative complex lazy string concatenations (e.g. in urls.py when translating urls in regular expressions). | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2015-12-12 | Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy(). | Iacopo Spalletti | |
| Thanks to bmispelon and uruz for the initial patch. | |||
| 2015-07-17 | Fixed #16501 -- Added an allow_unicode parameter to SlugField. | Edward Henderson | |
| Thanks Flavio Curella and Berker Peksag for the initial patch. | |||
| 2015-02-04 | Fixed #24242 -- Improved efficiency of utils.text.compress_sequence() | Matthew Somerville | |
| The function no longer flushes zfile after each write as doing so can lead to the gzipped streamed content being larger than the original content; each flush adds a 5/6 byte type 0 block. Removing this means buf.read() may return nothing, so only yield if that has some data. Testing shows without the flush() the buffer is being flushed every 17k or so and compresses the same as if it had been done as a whole string. | |||
| 2015-01-17 | Removed utils.text.javascript_quote() per deprecation timeline; refs #21725. | Tim Graham | |
| 2014-12-30 | Applied ignore_warnings to Django tests | Claude Paroz | |
| 2014-12-06 | Refs #23947 -- Worked around a bug in Python that prevents deprecation ↵ | Diego Guimarães | |
| warnings from appearing in tests. | |||
| 2014-09-23 | Consolidated some text utils into the utils_tests test package. | Loic Bistuer | |
| 2014-03-08 | Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings | Claude Paroz | |
| Thanks Anssi Kääriäinen for the idea and Simon Charette for the review. | |||
| 2014-03-05 | Really hidden warnings in javascript_quote tests | Claude Paroz | |
| Refs #21725. | |||
| 2014-02-22 | Deprecated django.utils.text.javascript_quote. | Baptiste Mispelon | |
| Refs #21725. | |||
| 2014-02-22 | Fixed test failures when running in a narrow Python build. | Baptiste Mispelon | |
| 2014-02-15 | Fixed #21725 -- Fixed JavaScript quoting encoding. | MattBlack85 | |
| Thanks to nedbatchelder for the report. | |||
| 2014-02-06 | Fixed #21731 -- Made javascript_quote escapes '</'. | Vajrasky Kok | |
| 2013-12-12 | Fixed #21574 -- Handle bytes consistently in utils.text.normalize_newlines. | Baptiste Mispelon | |
| All input is now coerced to text before being normalized. This changes nothing under Python 2 but it allows bytes to be passed to the function without a TypeError under Python3 (bytes are assumed to be utf-8 encoded text). Thanks to trac user vajrasky for the report. | |||
| 2013-12-07 | Fixed #21572 -- Added unit test for django.utils.text.normalize_newlines. | Vajrasky Kok | |
| 2013-11-24 | Fixed #21505 -- Added unit test for django.utils.text.get_valid_filename. | Vajrasky Kok | |
| 2013-11-02 | Fixing E302 Errors | Jason Myers | |
| Signed-off-by: Jason Myers <jason@jasonamyers.com> | |||
| 2013-11-02 | Fixed #21302 -- Fixed unused imports and import *. | Tim Graham | |
| 2013-10-14 | Fixed #21266 -- Fixed E201,E202 pep8 warnings. | Larry O'Neill | |
| 2013-10-08 | Fixed #20568 -- truncatewords_html no longer splits words containing HTML ↵ | Jaap Roes | |
| entities. Thanks yann0 at hotmail.com for the report. | |||
| 2013-09-27 | Fix #21185: Added tests for unescape_entities. | Baptiste Mispelon | |
| Also fixed a py3 incompatibility. Thanks to brutasse for the report. | |||
| 2013-04-12 | Modified utils_tests for unittest2 discovery. | Preston Timmons | |
