summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
Diffstat (limited to 'django/template')
-rw-r--r--django/template/defaultfilters.py2
-rw-r--r--django/template/loader_tags.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index 1bd54404b3..6dfff99bfc 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -40,7 +40,7 @@ def stringfilter(func):
args = list(args)
args[0] = force_text(args[0])
if (isinstance(args[0], SafeData) and
- getattr(_dec._decorated_function, 'is_safe', False)):
+ getattr(_dec._decorated_function, 'is_safe', False)):
return mark_safe(func(*args, **kwargs))
return func(*args, **kwargs)
diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py
index 740b503cc5..31ba3475d3 100644
--- a/django/template/loader_tags.py
+++ b/django/template/loader_tags.py
@@ -70,7 +70,7 @@ class BlockNode(Node):
def super(self):
render_context = self.context.render_context
if (BLOCK_CONTEXT_KEY in render_context and
- render_context[BLOCK_CONTEXT_KEY].get_block(self.name) is not None):
+ render_context[BLOCK_CONTEXT_KEY].get_block(self.name) is not None):
return mark_safe(self.render(self.context))
return ''