1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed support for function-based template loaders.

They were deprecated in Django 1.2 but not all the supporting code was
removed in Django 1.4. Since the remaining code was unlikely to be
functional (pun intended) e.g. it would crash unless the loader
function had an is_usable attribute, this commit completes the removal
immediately instead of starting another deprecation path.
This commit is contained in:
Aymeric Augustin
2014-11-16 22:08:17 +01:00
parent e87bee6f50
commit fab26cf5e0
3 changed files with 6 additions and 30 deletions

View File

@@ -1040,13 +1040,6 @@ class decorators. As a consequence, when overriding ``setUpClass()`` or
``django.template.loaders.base.Loader``. If you've written a custom template
loader that inherits ``BaseLoader``, you must inherit ``Loader`` instead.
Function-based template loaders
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In addition to the documented class-based API for custom template loaders,
Django still supported to some extent an earlier function-based API. This
private API wasn't maintained or tested. Now it's formally deprecated.
``django.test.utils.TestTemplateLoader``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~