summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
AgeCommit message (Collapse)Author
2019-03-03[1.11.x] Reverted "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. Backport of b435f82939edf70674856e0e1cd63973c2e0a1d1 from master.
2019-02-25[1.11.x] Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak
Backport of 463fe11bc8b2d068e447c5df677e7a31c2af7e03 from master.
2018-02-20[1.11.x] Removed blank lines per isort 4.3.0.Tim Graham
2017-04-03[1.11.x] Fixed #27974 -- Kept resolved templates constant during one ↵kapil garg
rendering cycle. Thanks Florian Apolloner for the initial patch. Backport of 002fe076225c2aa6e389481b038f55acb6f807d0 from master
2017-02-11[1.11.x] Fixed #27722 -- Reallowed using django.Template in {% include %}.Tim Graham
Backport of fe2d2884345e1e6a1daadd76e9404c62791ab589 from master
2017-01-06Fixed #24423 -- Reorganized i18n tag tests.Andy Craze
2016-12-30Fixed #26478 -- Made {% for %} reject invalid unpacking vars with quotes or ↵Tim Martin
vertical bars.
2016-12-30Used assertRaisesMessage() in {% for %} tests.Tim Graham
2016-12-19Refs #25484 -- Made non-staticfiles {% static %} tag quote its output.Tim Graham
2016-12-19Refs #21221 -- Prevented {% static %} tests from using contrib.staticfiles.Tim Graham
2016-12-17Fixed #25484 -- Made {% static %} render escaped URLs.alix-
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-08Fixed #27175 -- Deprecated silencing exceptions from the {% include %} ↵Jon Dufresne
template tag. Thanks Tim Graham for the review.
2016-09-01Fixed #5908 -- Added {% resetcycle %} template tag.Sergei Maertens
Thanks to Simon Litchfield for the report, Uninen for the initial patch, akaihola, jamesp, b.schube, and Florian Appoloner for subsequent patches, tests, and documentation.
2016-08-31Fixed #27140 -- Prevented template rendering from hiding a property's TypeError.Tim Graham
2016-08-26Fixed #27126 -- Made {% regroup %} return a namedtuple to ease unpacking.Baptiste Mispelon
2016-08-15Fixed #27058 -- Reallowed the {% for %} tag to unpack any iterable.Tim Graham
Thanks Sergei Maertens for the report and patch.
2016-08-09Fixed #26830 -- Prevented the 'with' templatetag from resetting the cycle ↵Alexander Schrijver
variable to its initial state.
2016-08-09Refs #26830 -- Added a test for a named cycle template tag inside an ↵Alexander Schrijver
ifchanged block and a for loop.
2016-07-21Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.Raphaël Hertzog
2016-07-09Fixed numpy deprecation warning silencing in template_tests.Baptiste Mispelon
2016-05-27Fixed #26573 -- Added descriptive error message for malformed if/else/elif ↵inondle
template tags.
2016-04-29Refs #26479 -- Documented is/is not if tag operator behavior for nonexistent ↵Alasdair Nicol
variables.
2016-04-29Added tests for if tag's != operator.Alasdair Nicol
2016-04-09Fixed #26479 -- Added 'is not' operator to the if tag.Alasdair Nicol
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-22Fixed #26118 -- Added 'is' operator to if template tag.Preston Timmons
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-11-17Removed obsolete comments about Django 1.10 in two test files.Tim Graham
2015-10-26Fixed #25610 -- Reverted removal of request.current_app in {% url %} tag.Marten Kenbeek
The deprecation removal in 5e450c52aafb62b9d83c8ac08892e0b92cbec4aa removed too much.
2015-09-23Refs #23913 -- Removed support for a single equals sign in {% if %} tag.Tim Graham
Per deprecation timeline.
2015-09-23Refs #13408 -- Made unpacking mismatch an exception in {% for %} tag per ↵Tim Graham
deprecation timeline.
2015-09-23Refs #22384 -- Removed the ability to reverse URLs by dotted path per ↵Tim Graham
deprecation timeline.
2015-09-23Refs #24451 -- Removed comma-separated {% cycle %} syntax per deprecation ↵Tim Graham
timeline.
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
2015-09-23Refs #22306 -- Removed cycle/firstof template tags from "future".Tim Graham
Per deprecation timeline.
2015-09-15Fixed #25404 -- Added line numbers to TemplateSyntaxError strings.Dave Smith
This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-12Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck
Refactored tests to use a sample project. Updated extraction: * Removed special handling of single percent signs. * When extracting messages from template text, doubled all percent signs so they are not interpreted by gettext as string format flags. All strings extracted by gettext, if containing a percent sign, will now be labeled "#, python-format". Updated translation: * Used "%%" for "%" in template text before calling gettext. * Updated {% trans %} rendering to restore "%" from "%%".
2015-08-08Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham
2015-07-27Fixed #24127 -- Changed the default current_app to the current namespace.Marten Kenbeek
Changed the url template tag to use request.resolver_match.namespace as a default for the current_app argument if request.current_app is not set.
2015-07-21Corrected HTML-escaping behaviour of url template tag.Luke Plant
Due to the URL encoding applied by the tag for all parameters that might be partly controllable by an end-user, there are no XSS/security problems caused by this bug, only invalid HTML.
2015-07-01Fixed #21695 -- Added asvar option to blocktrans.Matthew Somerville
Thanks Bojan Mihelac for the initial patch.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-06Fixed #23516 -- Added caching of include tag Template objectsMatthew Somerville
This also speeds up for loops that render the same template multiple times.
2015-06-02Fixed #24230 -- Added translated language name for i18n template tag/filter.Tomáš Ehrlich
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
2015-04-20Updated template tests to create their own engine.Preston Timmons
This continues work to treat Django templates as a library.
2015-04-14Fixed #12199 -- Added the ability to use "as" with the firstof template tag.Craig Oldford