summaryrefslogtreecommitdiff
path: root/tests/template_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34518 -- Fixed crash of random() template filter with an empty list.David Sanders2023-04-261-0/+5
|
* Fixed #34427 -- Improved error message when context processor does not ↵David Sanders2023-03-291-1/+28
| | | | return a dict.
* Fixed some typos in comments, docstrings, and tests.Liyang Zhang2023-03-201-1/+1
|
* 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-012-2/+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 #27654 -- Propagated alters_data attribute to callables overridden in ↵LightDiscord2022-11-041-0/+63
| | | | | | | subclasses. Thanks Shai Berger and Adam Johnson for reviews and the implementation idea.
* 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 #33631 -- Marked {% blocktranslate asvar %} result as HTML safe.cheng2022-07-141-0/+16
|
* Fixed #33748 -- Fixed date template filter crash with lazy format.Claude Paroz2022-05-311-0/+5
| | | | Regression in 659d2421c7adbbcd205604002d521d82d6b0b465.
* Normalized imports of functools.wraps.Aymeric Augustin2022-05-251-2/+2
| | | | | @wraps is 10 times more common than @functools.wraps. Standardize to the most common version.
* Fixed #33653 -- Fixed template crash when calling methods for built-in types ↵cheng2022-05-201-0/+8
| | | | | | without required arguments. Regression in 09341856ed9008875c1cc883dc0c287670131458.
* Fixed #33628 -- Ignored directories with empty names in autoreloader check ↵Manel Clos2022-04-111-0/+11
| | | | | | for template changes. Regression in 68357b2ca9e88c40fc00d848799813241be39129.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-0761-301/+800
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-07130-4953/+6799
|
* Fixed #33473 -- Fixed detecting changes by autoreloader in .py files inside ↵Hrushikesh Vaidya2022-02-031-0/+13
| | | | template directories.
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-033-7/+5
| | | | | | | | | | | | | | | | | 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-2022-22818 -- Fixed possible XSS via {% debug %} template tag.Markus Holtermann2022-02-012-10/+46
| | | | | | Thanks Keryn Knight for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
* 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.
* Fixed #33036 -- Made simple_tag()/inclusion_tag() with takes_context raise ↵Matt Westcott2021-08-193-0/+42
| | | | TemplateSyntaxError when function has no parameters.
* Refs #33002 -- Added DebugLexer/Lexer.tokenize() test for trailing text token.Mariusz Felisiak2021-08-091-0/+2
|
* Refs #33002 -- Made template_tests.tests.py's tests test both Lexer and ↵Chris Jerdonek2021-08-091-32/+45
| | | | DebugLexer.
* Refs #32990 -- Added tests for DebugLexer/Lexer.tokenize().Greg Twohig2021-08-091-0/+40
|
* Added test for TemplateSyntaxError when variables begin with underscores.Mariusz Felisiak2021-08-021-5/+6
|
* Refs #32956 -- Corrected spelling of "gray".David Smith2021-08-021-2/+2
|
* 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 #28935 -- Fixed display of errors in extended blocks.cammil2021-07-023-1/+19
| | | | | | Get the template that caused the exception and get the exception info from that template, using the node that caused the exception.
* Fixed #32824 -- Improved performance of NodeList.render().Keryn Knight2021-06-111-1/+1
| | | | | | | | | | | This avoids the following: - checking that each item in the nodelist is a subclass of Node, - calling str() on the render_annotated() output, because it's documented that Node.render() must return a string, - calling mark_safe() on the output, when the value to be wrapped is definitively known to be a string because the result of ''.join() is always of that type, - using an intermediate list to store each individual string.
* Refs #24121 -- Added __repr__() to AdminForm, BlockContext, ↵saeedblanchette2021-06-103-0/+38
| | | | BlockTranslateNode, and IncludeNode.
* Refs #24121 -- Added __repr__() to Engineabhiabhi942021-06-011-0/+37
|
* Fixed #32744 -- Normalized to pathlib.Path in autoreloader check for ↵Hasan Ramezani2021-05-261-0/+20
| | | | template changes.
* Refs #24121 -- Added__repr__() to StaticNode.saeedblanchette2021-05-121-0/+15
|
* Refs #24121 -- Added __repr__() to Origin and Template.Tiago Honorato2021-03-172-0/+17
|
* Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.François Freitag2021-03-021-3/+2
|
* Refs #24121 -- Added __repr__() to URLNode.Rohith PR2021-03-021-0/+21
|
* Refs #24121 -- Added __repr__() to FilterExpression, Lexer, Parser, and Token.David Smith2021-02-261-1/+17
|
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-061-1/+1
| | | | docs where appropriate.
* Fixed #32290 -- Fixed TemplateNotFound in {% include %} tag for relative ↵Hasan Ramezani2021-01-272-0/+7
| | | | path in variable.
* Refs #32290 -- Added {% extends %} test for relative path in variable.Hasan Ramezani2021-01-272-0/+9
|
* Refs #25236 -- Removed {% ifequal %} and {% ifnotequal %} template tags per ↵Mariusz Felisiak2021-01-143-276/+2
| | | | deprecation timeline.
* Fixed #32208 -- Allowed adding lazy() objects.Hasan Ramezani2020-12-211-0/+17
| | | | Co-authored-by: Claude Paroz <claude@2xlibre.net>
* Refs #15053 -- Clarified debug message when skipping templates to avoid ↵Daniel Hahler2020-11-211-1/+6
| | | | recursion.
* Changed docs and a code comment to use gender-neutral pronouns.Nick Pope2020-11-131-1/+1
| | | Follow up to e1b77238171cc96f4451a06fb4682e2378896238.
* Fixed #25791 -- Implement autoreload behaviour for cached template loader.Tom Forbes2020-11-051-0/+92
|
* Refs #25791 -- Added get_dirs() method to cached template loader.Tom Forbes2020-11-051-0/+4
|