summaryrefslogtreecommitdiff
path: root/django/template/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/template/base.py')
-rw-r--r--django/template/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/django/template/base.py b/django/template/base.py
index ed1bae3022..1446cc865e 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -981,6 +981,15 @@ class TextNode(Node):
def render(self, context):
return self.s
+ def render_annotated(self, context):
+ """
+ Return the given value.
+
+ The default implementation of this method handles exceptions raised
+ during rendering, which is not necessary for text nodes.
+ """
+ return self.s
+
def render_value_in_context(value, context):
"""