summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-09-24 08:20:06 -0400
committerTim Graham <timograham@gmail.com>2015-09-24 09:15:56 -0400
commit6048bfdc33931f1c71f594a7d49313a58fcd310b (patch)
treef259e386333d34a9d975a30812128aec653c8b35
parentfd1e54b923871d9596f9692c0fc576cd40ce3e38 (diff)
Added django.template.engine.Engine.render_to_string() docstring.
-rw-r--r--django/template/engine.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/django/template/engine.py b/django/template/engine.py
index dc049dd246..d439f49679 100644
--- a/django/template/engine.py
+++ b/django/template/engine.py
@@ -162,13 +162,11 @@ class Engine(object):
template = Template(template, origin, template_name, engine=self)
return template
- # This method was originally a function defined in django.template.loader.
- # It was moved here in Django 1.8 when encapsulating the Django template
- # engine in this Engine class. It's still called by deprecated code but it
- # will be removed in Django 1.10. It's superseded by a new render_to_string
- # function in django.template.loader.
-
def render_to_string(self, template_name, context=None):
+ """
+ Render the template specified by template_name with the given context.
+ For use in Django's test suite.
+ """
if isinstance(template_name, (list, tuple)):
t = self.select_template(template_name)
else: