Tim Graham
8119b679eb
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
...
http://bugs.python.org/issue27364
2016-09-17 15:44:06 -04:00
Jon Dufresne
331ca5391e
Fixed #27175 -- Deprecated silencing exceptions from the {% include %} template tag.
...
Thanks Tim Graham for the review.
2016-09-08 18:24:22 -07:00
Tim Graham
277fe2e8f2
Fixed #25788 -- Enabled the cached template loader if debug is False.
2016-09-03 09:06:33 -04:00
Sergei Maertens
32c02f2a0e
Fixed #5908 -- Added {% resetcycle %} template tag.
...
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-09-01 15:52:21 -04:00
Tim Graham
59afe61a97
Fixed #27140 -- Prevented template rendering from hiding a property's TypeError.
2016-08-31 13:44:38 -04:00
Baptiste Mispelon
61b45dff6b
Fixed #27126 -- Made {% regroup %} return a namedtuple to ease unpacking.
2016-08-26 16:59:21 -04:00
Tim Graham
937d752d3d
Fixed #27058 -- Reallowed the {% for %} tag to unpack any iterable.
...
Thanks Sergei Maertens for the report and patch.
2016-08-15 15:39:22 -04:00
Alexander Schrijver
3ae3a1f9fa
Fixed #26830 -- Prevented the 'with' templatetag from resetting the cycle variable to its initial state.
2016-08-09 09:05:17 -04:00
Alexander Schrijver
31e053edfa
Refs #26830 -- Added a test for a named cycle template tag inside an ifchanged block and a for loop.
2016-08-09 08:47:09 -04:00
Raphaël Hertzog
8e5cbc884f
Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
2016-07-21 12:59:55 -04:00
Baptiste Mispelon
418658f453
Fixed numpy deprecation warning silencing in template_tests.
2016-07-09 10:23:58 -04:00
Jon Dufresne
4f336f6652
Fixed #26747 -- Used more specific assertions in the Django test suite.
2016-06-16 14:19:18 -04:00
inondle
93c312cc9c
Fixed #26573 -- Added descriptive error message for malformed if/else/elif template tags.
2016-05-27 18:12:56 -04:00
Tim Graham
ece4d24f8e
Refs #26601 -- Deprecated old-style middleware.
2016-05-17 07:22:26 -04:00
Florian Apolloner
9baf692a58
Fixed #26601 -- Improved middleware per DEP 0005.
...
Thanks Tim Graham for polishing the patch, updating the tests, and
writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-05-17 07:22:22 -04:00
Tim Graham
60b095cc4c
Refs #24046 -- Fixed a template test when run in reverse.
2016-05-11 11:41:10 -04:00
Tim Graham
2f0e0eee45
Fixed #24046 -- Deprecated the "escape" half of utils.safestring.
2016-05-10 12:46:47 -04:00
Simon Charette
207c5b4acd
Fixed #26603 -- Forced lazy template names to text when computing cache key.
...
Refs #26536 .
Thanks Sylvain Fankhauser for the very detailed report.
2016-05-10 10:03:01 -04:00
Vitaly Bogomolov
aec4f97555
Fixed #26402 -- Added relative path support in include/extends template tags.
2016-05-07 16:21:57 -04:00
Alasdair Nicol
dac075e910
Refs #26479 -- Documented is/is not if tag operator behavior for nonexistent variables.
2016-04-29 12:38:46 -04:00
Alasdair Nicol
246020efc5
Added tests for if tag's != operator.
2016-04-29 12:30:32 -04:00
Simon Charette
bd145e7209
Fixed #26536 -- Preserved leading dashes of the cached template loader keys.
...
Thanks Anders Roos for the report.
2016-04-24 22:15:45 -04:00
Alasdair Nicol
c16b9dd8e0
Fixed #26479 -- Added 'is not' operator to the if tag.
2016-04-09 13:01:15 -04:00
amureki
f8bbba8060
Fixed #26403 -- Removed translated content in "Invalid block tag" message.
2016-04-09 09:31:05 -04:00
Tim Graham
92053acbb9
Fixed E128 flake8 warnings in tests/.
2016-04-08 10:12:33 -04:00
Alex Hill
ecb59cc657
Fixed #26306 -- Fixed memory leak in cached template loader.
2016-03-16 12:37:57 -04:00
Ivan Tsouvarev
8890c533e0
Fixed #26280 -- Fixed cached template loader crash when loading nonexistent template.
2016-02-26 08:02:10 -05:00
Andrew Kuchev
e81d1c995c
Fixed #25670 -- Allowed dictsort to sort a list of lists.
...
Thanks Tim Graham for the review.
2016-02-23 12:15:08 -05:00
Tim Graham
cdbd8745f6
Fixed #26263 -- Deprecated Context.has_key()
2016-02-23 08:08:55 -05:00
Jon Dufresne
dec334cb66
Fixed #26193 -- Made urlize() trim multiple trailing punctuation.
2016-02-15 09:10:15 -05:00
Tim Graham
406675b1a0
Fixed #26176 -- Fixed E123 flake8 warnings.
2016-02-05 15:11:07 -05:00
Claude Paroz
be9bd3348d
Fixed #25758 -- Defaulted to current language FORMATs in date/time filters
...
Thanks Ali Lozano for the report and the initial patch, and Tim Graham for
the review.
2016-01-30 17:04:47 +01:00
Hasan
3d0dcd7f5a
Refs #26022 -- Used context manager version of assertRaises in tests.
2016-01-29 12:32:18 -05:00
Preston Timmons
cfda1fa3f8
Fixed #25848 -- Set template origin on each node.
...
Prior to 55f12f8709
, the template origin was available on each node via
`self.token.source[0]`. This behavior was removed when debug handling was
simplified, but 3rd-party debugging tools still depend on its presence.
This updates the Parser to set origin on individual nodes. This enables the
source template to be determined even when template extending or including is
used.
2016-01-26 06:23:27 -05:00
Preston Timmons
c00ae7f58c
Fixed #26118 -- Added 'is' operator to if template tag.
2016-01-22 15:35:28 -05:00
Marten Kenbeek
16411b8400
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
...
Thanks to Tim Graham for the review.
2015-12-31 14:21:29 -05:00
Iacopo Spalletti
d693074d43
Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy().
...
Thanks to bmispelon and uruz for the initial patch.
2015-12-12 14:46:48 -05:00
Jaap Roes
c6ea4ed5d2
Fixed #25825 -- Implemented __ne__() for template Origin
2015-12-03 15:59:34 -05:00
Josh Soref
93452a70e8
Fixed many spelling mistakes in code, comments, and docs.
2015-12-03 12:48:24 -05:00
Alex Morozov
13dba4dba3
Fixed #25780 -- Removed redundant status code assertions from tests
2015-11-21 18:12:33 +01:00
Tim Graham
20d2778597
Removed obsolete comments about Django 1.10 in two test files.
2015-11-17 10:42:22 -05:00
Sambhav Satija
ce7dd1273e
Fixed #25441 -- Added support for negative filesize to filesizeformat template filter.
...
Thanks Andrey Yakovlev for the initial patch.
2015-10-27 10:35:45 -04:00
Marten Kenbeek
34af2bc523
Fixed #25610 -- Reverted removal of request.current_app in {% url %} tag.
...
The deprecation removal in 5e450c52aa
removed too much.
2015-10-26 10:42:20 -04:00
Pindi Albert
9f2881deb1
Fixed #25423 -- Made error message for unknown template tag more helpful.
2015-10-05 17:21:35 -04:00
Tim Graham
2ccfac1a65
Refs #23913 -- Removed support for a single equals sign in {% if %} tag.
...
Per deprecation timeline.
2015-09-23 19:31:11 -04:00
Tim Graham
9af3c6b9ce
Made template response APIs enforce the use of dict and backend-specific template objects.
...
Per deprecation timeline; refs 79deb6a071
.
2015-09-23 19:31:11 -04:00
Tim Graham
9114fe8ada
Removed support for passing a context to a generic Template.render().
...
Per deprecation timeline; refs a3e783fe11
.
2015-09-23 19:31:11 -04:00
Tim Graham
9023696613
Removed dictionary and context_instance parameters for render functions.
...
Per deprecation timeline.
2015-09-23 19:31:11 -04:00
Tim Graham
b3641512c8
Removed dirs parameter in template engine methods and related funtions.
...
Per deprecation timeline.
2015-09-23 19:31:11 -04:00
Tim Graham
5e450c52aa
Removed current_app argument to render() and TemplateResponse().
...
Per deprecation timeline.
2015-09-23 19:31:10 -04:00