summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
AgeCommit message (Collapse)Author
2024-07-16Refs #10941 -- Renamed test file test_query_string.py to test_querystring.py.nessita
This follows previous renames made in 27043bde5b795eb4a605aeca1d3bc4345d2ca478.
2024-07-15Refs #10941 -- Renamed query_string template tag to querystring.Sarah Boyce
2023-12-31Used addCleanup() in tests where appropriate.Mariusz Felisiak
2023-10-26Fixed #10941 -- Added {% query_string %} template tag.Tom Carrick
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
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
2022-07-14Fixed #33631 -- Marked {% blocktranslate asvar %} result as HTML safe.cheng
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
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], )
2022-02-01Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag.Markus Holtermann
Thanks Keryn Knight for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
2021-08-02Refs #32956 -- Corrected spelling of "gray".David Smith
2021-06-10Refs #24121 -- Added __repr__() to AdminForm, BlockContext, ↵saeedblanchette
BlockTranslateNode, and IncludeNode.
2021-05-12Refs #24121 -- Added__repr__() to StaticNode.saeedblanchette
2021-03-02Refs #24121 -- Added __repr__() to URLNode.Rohith PR
2021-02-06Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann
docs where appropriate.
2021-01-14Refs #25236 -- Removed {% ifequal %} and {% ifnotequal %} template tags per ↵Mariusz Felisiak
deprecation timeline.
2020-09-29Fixed #18995 -- Made blocktranslate tag raise TemplateSyntaxError when ↵Jacob Walls
plural count is not a number.
2020-05-14Completed lorem tag test coverage.David Smith
2020-05-11Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.Jon Dufresne
The {% if %} tag provides all features of these tags. Since Django 1.2 (May 17, 2010), the docs have hinted that {% ifequal %} and {% ifnotequal %} will be deprecated in a future Django version. Time to make it official.
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-02-18Fixed #20995 -- Added support for iterables of template names to {% include ↵Keshav Kumar
%} template tag. Thanks Adam Johnson for the review.
2020-02-07Used assertRaisesMessage() in various tests.Hasan Ramezani
2019-12-18Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen
2019-12-18Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen
2019-09-24Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen
EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
2019-06-20Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin
This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.
2019-04-25Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne
html.escape()/unescape().
2019-03-03Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak
This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
2019-02-25Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-08-21Fixed #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-08-01Fixed typos in comments and docs.luz.paz
2018-07-27Moved yesno filter test to its file.Hasan Ramezani
2018-04-18Refs #23890 -- Removed numpy deprecation warning silencing.Tim Graham
Obsolete since numpy 1.12.0.
2018-04-04Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.Jirka Vejrazka
2018-03-26Increased test coverage for {% get_admin_log %} and {% static %}.Hasan Ramezani
2018-03-24Increased test coverage for various template tags.Mads Jensen
2018-03-21Increased test coverage for i18n template tags.Mads Jensen
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-25Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are ↵Roger Gammans
false.
2017-10-05Added tests for invalid {% for %} usage and ForLoop.__repr__().Mads Jensen
2017-10-02Added tests for invalid {% autoescape %} usage.Mads Jensen
2017-09-22Refs #27175 -- Removed exception silencing from the {% include %} template tag.Tim Graham
Per deprecation timeline.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-04-06Fixed #28001 -- Updated comment and tested context popping in ForNode.render().kapil garg
2017-04-03Fixed #27974 -- Kept resolved templates constant during one rendering cycle.kapil garg
Thanks Florian Apolloner for the initial patch.
2017-03-15Fixed #27882 -- Allowed {% cache %} to cache indefinitely.Bo Marchman
2017-02-11Fixed #27722 -- Reallowed using django.Template in {% include %}.Tim Graham
2017-02-07Refs #27795 -- Removed force_text from the template layerClaude Paroz
Thanks Tim Graham for the review.