summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-09-26 07:26:07 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-09-26 07:26:07 +0000
commit9c0568e21ef8acde73e43cd899cf2a74967489b2 (patch)
tree9f0ab990597598bff7a5431640c677719913d820 /django
parenta27f12f3884de8c51b7f8bf6fd669d38f449360c (diff)
Fixed #2208 -- Allow empty arguments to be passed to filters. Thanks, mattmcc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/template/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index fa75f6c2f5..af8f37a474 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -532,7 +532,7 @@ class FilterExpression(object):
constant_arg, i18n_arg, var_arg = match.group("constant_arg", "i18n_arg", "var_arg")
if i18n_arg:
args.append((False, _(i18n_arg.replace(r'\"', '"'))))
- elif constant_arg:
+ elif constant_arg is not None:
args.append((False, constant_arg.replace(r'\"', '"')))
elif var_arg:
args.append((True, var_arg))