diff --git a/django/template/base.py b/django/template/base.py
index bb2456a..a8597b5 100644
a
|
b
|
class Origin(object):
|
156 | 156 | ) |
157 | 157 | |
158 | 158 | |
| 159 | # for backwards compatibility in Django 1.9 RemovedInDjango20Warning |
| 160 | class StringOrigin(Origin): |
| 161 | pass |
| 162 | |
| 163 | |
159 | 164 | class Template(object): |
160 | 165 | def __init__(self, template_string, origin=None, name=None, engine=None): |
161 | 166 | try: |
diff --git a/django/template/loader.py b/django/template/loader.py
index 38dfabc..b5c5df8 100644
a
|
b
|
|
1 | 1 | from . import engines |
| 2 | from .base import Origin |
2 | 3 | from .exceptions import TemplateDoesNotExist |
3 | 4 | |
4 | 5 | |
… |
… |
def render_to_string(template_name, context=None, request=None, using=None):
|
57 | 58 | |
58 | 59 | def _engine_list(using=None): |
59 | 60 | return engines.all() if using is None else [engines[using]] |
| 61 | |
| 62 | |
| 63 | # for backwards compatibility in Django 1.9 RemovedInDjango20Warning |
| 64 | class LoaderOrigin(Origin): |
| 65 | pass |