| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-04-01 | [1.8.x] Fixed #23441, #24555 -- Improved the behavior of InclusionNode. | Tim Graham | |
| This change: * Makes the InclusionNode cache-safe by removing render-time side effects to its nodelist. * Ensures the render_context stack is properly scoped and reset by updating the render call to use Template.render rather than Nodelist.render. Backport of 0808ccce3808235c5b5a56e3f689cec0d4bc0ebf from master | |||
| 2015-03-10 | [1.8.x] Fixed escaping regression in urlize filter. | Tim Graham | |
| Now that the URL is always unescaped as of refs #22267, we should re-escape it before inserting it into the anchor. Backport of 7b1a67cce52e5c191fbfa1bca501c6f0222db019 from master | |||
| 2015-03-09 | [1.8.x] Fixed #24464 -- Made built-in HTML template filter functions escape ↵ | Erik Romijn | |
| their input by default. This may cause some backwards compatibility issues, but may also resolve security issues in third party projects that fail to heed warnings in our documentation. Thanks Markus Holtermann for help with tests and docs. Backport of fa350e2f303572ee8f9a8302dda45a12288d3d95 from master | |||
| 2015-03-06 | [1.8.x] Fixed urlize regression with entities in query strings | Claude Paroz | |
| Refs #22267. Thanks Shai Berger for spotting the issue and Tim Graham for the initial patch. Backport of ec808e807 from master. | |||
| 2015-02-24 | [1.8.x] Cleaned up template directory handling in template tests. | Preston Timmons | |
| Backport of 8e129b42ad9c9adca599228ae2ad68271fa46d44 from master | |||
| 2015-02-24 | [1.8.x] Combined TemplateTests and TemplateRegressionTests. | Preston Timmons | |
| Backport of 32c108a221c54a4f680afe32175d70b5d2e92593 from master | |||
| 2015-02-24 | [1.8.x] Moved test_token_smart_split into ParserTests. | Preston Timmons | |
| Backport of 25a0b5cdcd5e70a6563116639a477b915ee5784e from master | |||
| 2015-02-24 | [1.8.x] Moved ifchanged tests into syntax_tests/test_if_changed.py. | Preston Timmons | |
| Backport of 3d8fee605184d8ffa47a32546298b52b52d7a087 from master | |||
| 2015-02-24 | [1.8.x] Moved cache tests into syntax_tests/test_cache.py. | Preston Timmons | |
| Backport of f6d087b628a61a7b036cc468328497082031dc8e from master | |||
| 2015-02-24 | [1.8.x] Moved RequestContextTests into test_context. | Preston Timmons | |
| Backport of 250a3d199310a954a95fb1ffa4915f0e51ba1767 from master | |||
| 2015-02-24 | [1.8.x] Moved TemplateTagLoading cases into test_custom. | Preston Timmons | |
| Backport of ff67ce5076c1f4d3dc32fd755a1b65d3310c6cb1 from master | |||
| 2015-02-24 | [1.8.x] Moved include tests into syntax_tests/test_include.py. | Preston Timmons | |
| Backport of 06ffc764a9b2d2521e6a574d279b66ad411cc65c from master | |||
| 2015-02-24 | [1.8.x] Moved ssi tests into syntax_tests/test_ssi.py. | Preston Timmons | |
| Backport of 441a47e1efd46001ca454b80e0d5f8c5ea4e235b from master | |||
| 2015-02-24 | [1.8.x] Cleaned up template loader tests. | Tim Graham | |
| Backport of 1827aa902481cd80d2fb154e7b073f139936d5fc from master | |||
| 2015-02-19 | [1.8.x] Set context.template instead of context.engine while rendering. | Aymeric Augustin | |
| This opens more possibilities, like accessing context.template.origin. It also follows the chain of objects instead of following a shortcut. Backport of 1bfcc95 from master | |||
| 2015-02-17 | [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django ↵ | Tim Graham | |
| source contains non-ASCII characters. Backport of 307c0f299a6c26f5231d3516df5b4edc54b36553 from master | |||
| 2015-02-15 | [1.8.x] Deprecated TEMPLATE_DEBUG setting. | Aymeric Augustin | |
| Backport of 15b711b from master. | |||
| 2015-02-14 | [1.8.x] Fixed #24338 -- Accepted Template wrapper in {% extends %}. | Aymeric Augustin | |
| Explicitly checking for django.template.Template subclasses is preferrable to duck-typing because both the django.template.Template and django.template.backends.django.Template have a render() method. Thanks spectras for the report. Backport of 47ee7b48 from master | |||
| 2015-02-09 | [1.8.x] Sorted imports with isort; refs #23860. | Tim Graham | |
| Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master | |||
| 2015-02-05 | [1.8.x] Fixed #24273 -- Allowed copying RequestContext more than once. | Aymeric Augustin | |
| Thanks Collin Anderson for the report. Backport of 31d3a355 from master | |||
| 2015-02-03 | [1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs. | Aymeric Augustin | |
| Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review. Backport of 2133f31 from master. Conflicts: docs/topics/http/shortcuts.txt tests/generic_views/test_base.py | |||
| 2015-01-18 | [1.8.x] Removed usage of deprecated removetags in a template test. | Tim Graham | |
| Backport of b84100e8e22b175b62ce849acbcf1fa9a1e0e5b8 from master | |||
| 2015-01-12 | Accounted for multiple template engines in template responses. | Aymeric Augustin | |
| 2015-01-12 | Deprecated passing a Context to a generic Template.render. | Aymeric Augustin | |
| A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered. | |||
| 2015-01-12 | Fixed test from refs #23913 when running tests in reverse. | Tim Graham | |
| 2015-01-11 | Fixed #23913 -- Deprecated the `=` comparison in `if` template tag. | Ola Sitarska | |
| 2015-01-09 | Fixed #24094 -- Enabled template tests to run individually. | Preston Timmons | |
| 2015-01-05 | Fixed #24022 -- Deprecated the ssi tag. | Preston Timmons | |
| 2014-12-30 | Applied ignore_warnings to Django tests | Claude Paroz | |
| 2014-12-28 | Deprecated TEMPLATE_CONTEXT_PROCESSORS. | Aymeric Augustin | |
| 2014-12-28 | Deprecated TEMPLATE_DIRS. | Aymeric Augustin | |
| 2014-12-28 | Deprecated TEMPLATE_LOADERS. | Aymeric Augustin | |
| 2014-12-28 | Deprecated TEMPLATE_STRING_IF_INVALID. | Aymeric Augustin | |
| 2014-12-28 | Deprecated ALLOWED_INCLUDE_ROOTS. | Aymeric Augustin | |
| 2014-12-28 | Deprecated current_app in TemplateResponse and render(_to_response). | Aymeric Augustin | |
| 2014-12-28 | Supported multiple template engines in render_to_string. | Aymeric Augustin | |
| Adjusted its API through a deprecation path according to the DEP. | |||
| 2014-12-28 | Removed private API find_template. | Aymeric Augustin | |
| It wasn't documented and it wasn't used anywhere, except in a few tests that don't test it specifically and can be rewritten with get_template. | |||
| 2014-12-28 | Supported multiple template engines in get_template and select_template. | Aymeric Augustin | |
| This commit changes the return type of these two functions. Instead of returning a django.template.Template they return a backend-specific Template class that must implement render(self, context). | |||
| 2014-12-28 | Isolated template tests from Django settings. | Aymeric Augustin | |
| 2014-12-28 | Cleaned up the django.template namespace. | Aymeric Augustin | |
| Since this package is going to hold both the implementation of the Django Template Language and the infrastructure for Multiple Template Engines, it should be untied from the DTL as much as possible within our backwards-compatibility policy. Only public APIs (i.e. APIs mentioned in the documentation) were left. | |||
| 2014-12-16 | Fixed #16028 -- Moved defaultfilters tests into template_tests. | Preston Timmons | |
| 2014-12-13 | Removed obsolete code for running test_loaders.py. | Aymeric Augustin | |
| Running this file as a standalone script doesn't work anyway. | |||
| 2014-12-06 | Refs #23890 -- Restored silencing of numpy DeprecationWarnings in template ↵ | Tim Graham | |
| tests. | |||
| 2014-12-06 | Fixed #23958 -- Rewrote filter tests as unit tests. | Preston Timmons | |
| 2014-12-03 | Converted recently refactored templates tests to SimpleTestCase. | Ramiro Morales | |
| These test methods don't need DB setup/teardown. Refs #23768 and b872134b. | |||
| 2014-12-03 | Removed redundant numbered parameters from str.format(). | Berker Peksag | |
| Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}". | |||
| 2014-12-03 | Fixed "no such test method" error in template_tests. | Berker Peksag | |
| Without this patch, you couldn't run an individual test case in template_tests. Refs #23768 | |||
| 2014-12-02 | Fixed #23768 -- Rewrote template tests as unit tests. | Preston Timmons | |
| 2014-11-25 | Fixed #23914 -- Improved {% now %} to allow storing its result in the context. | Baptiste Mispelon | |
| Thanks to Tim for the review. | |||
| 2014-11-25 | Fixed #23890 -- Silenced numpy DeprecationWarnings in template tests. | Tim Graham | |
