summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
Commit message (Collapse)AuthorAgeFilesLines
* 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 #33631 -- Marked {% blocktranslate asvar %} result as HTML safe.cheng2022-07-141-0/+16
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-0723-157/+438
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0746-2713/+3760
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-1/+1
| | | | | | | | | | | | | | | | | 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-011-0/+46
| | | | | | Thanks Keryn Knight for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
* Refs #32956 -- Corrected spelling of "gray".David Smith2021-08-021-2/+2
|
* Refs #24121 -- Added __repr__() to AdminForm, BlockContext, ↵saeedblanchette2021-06-103-0/+38
| | | | BlockTranslateNode, and IncludeNode.
* Refs #24121 -- Added__repr__() to StaticNode.saeedblanchette2021-05-121-0/+15
|
* Refs #24121 -- Added __repr__() to URLNode.Rohith PR2021-03-021-0/+21
|
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-061-1/+1
| | | | docs where appropriate.
* Refs #25236 -- Removed {% ifequal %} and {% ifnotequal %} template tags per ↵Mariusz Felisiak2021-01-142-268/+1
| | | | deprecation timeline.
* Fixed #18995 -- Made blocktranslate tag raise TemplateSyntaxError when ↵Jacob Walls2020-09-291-0/+9
| | | | plural count is not a number.
* Completed lorem tag test coverage.David Smith2020-05-141-1/+23
|
* Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.Jon Dufresne2020-05-113-7/+36
| | | | | | | | 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.
* Capitalized Unicode in docs, strings, and comments.Jon Dufresne2020-04-201-1/+1
|
* Fixed #20995 -- Added support for iterables of template names to {% include ↵Keshav Kumar2020-02-181-0/+20
| | | | | | %} template tag. Thanks Adam Johnson for the review.
* Used assertRaisesMessage() in various tests.Hasan Ramezani2020-02-071-8/+4
|
* Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen2019-12-183-156/+171
|
* Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen2019-12-182-71/+215
|
* Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen2019-09-241-1/+2
| | | | | | | | EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
* Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin2019-06-202-4/+5
| | | | | 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.
* Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne2019-04-251-1/+1
| | | | html.escape()/unescape().
* Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak2019-03-035-5/+5
| | | | 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-255-5/+5
|
* Made reused RequestFactory instances class attributes.Simon Charette2018-11-271-5/+6
|
* Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz2018-08-211-1/+1
| | | | | | dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
* Fixed typos in comments and docs.luz.paz2018-08-011-1/+1
|
* Moved yesno filter test to its file.Hasan Ramezani2018-07-271-8/+0
|
* Refs #23890 -- Removed numpy deprecation warning silencing.Tim Graham2018-04-181-12/+0
| | | | Obsolete since numpy 1.12.0.
* Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.Jirka Vejrazka2018-04-041-0/+10
|
* Increased test coverage for {% get_admin_log %} and {% static %}.Hasan Ramezani2018-03-261-0/+13
|
* Increased test coverage for various template tags.Mads Jensen2018-03-246-10/+70
|
* Increased test coverage for i18n template tags.Mads Jensen2018-03-217-0/+101
|
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-1/+0
|
* Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are ↵Roger Gammans2018-01-251-0/+7
| | | | false.
* Added tests for invalid {% for %} usage and ForLoop.__repr__().Mads Jensen2017-10-051-0/+19
|
* Added tests for invalid {% autoescape %} usage.Mads Jensen2017-10-021-0/+12
|
* Refs #27175 -- Removed exception silencing from the {% include %} template tag.Tim Graham2017-09-221-50/+11
| | | | Per deprecation timeline.
* Used assertRaisesMessage() to test Django's error messages.Mads Jensen2017-07-293-8/+16
|
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-012-3/+3
|
* Fixed #28001 -- Updated comment and tested context popping in ForNode.render().kapil garg2017-04-061-0/+17
|
* Fixed #27974 -- Kept resolved templates constant during one rendering cycle.kapil garg2017-04-032-0/+31
| | | Thanks Florian Apolloner for the initial patch.
* Fixed #27882 -- Allowed {% cache %} to cache indefinitely.Bo Marchman2017-03-151-0/+11
|
* Fixed #27722 -- Reallowed using django.Template in {% include %}.Tim Graham2017-02-111-1/+6
|
* Refs #27795 -- Removed force_text from the template layerClaude Paroz2017-02-071-3/+3
| | | | Thanks Tim Graham for the review.
* Added tests for various __repr__() methods.Mads Jensen2017-02-045-0/+41
|
* Fixed spelling of "nonexistent".Tim Graham2017-02-031-3/+1
|
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-2/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-252-2/+2
|