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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py
index c5bddaf63e..dc6b0c366c 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -641,7 +641,7 @@ class FilterExpression(object):
(name, len(nondefs), plen))
# Defaults can be overridden.
- defaults = defaults and list(defaults) or []
+ defaults = list(defaults) if defaults else []
try:
for parg in provided:
defaults.pop(0)