summaryrefslogtreecommitdiff
path: root/django/template/__init__.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-02-21 23:43:28 +0000
committerJannis Leidel <jannis@leidel.info>2010-02-21 23:43:28 +0000
commit84f8213d74817b8d5aaf81dfa611e919d5266360 (patch)
treed45bfd051b27d13d3c7c7fb54e142b3b4bbebd96 /django/template/__init__.py
parentb459f5b7e3be65bbd554e03626ff255d4a68e9fc (diff)
Fixed #5972 - Allow the template filters to be used with the trans tag. Thanks for the initial patch, Dmitri Fedortchenko.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template/__init__.py')
-rw-r--r--django/template/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index eba2429928..66c415a8c4 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -551,8 +551,8 @@ class FilterExpression(object):
elif var_arg:
args.append((True, Variable(var_arg)))
filter_func = parser.find_filter(filter_name)
- self.args_check(filter_name,filter_func, args)
- filters.append( (filter_func,args))
+ self.args_check(filter_name, filter_func, args)
+ filters.append((filter_func, args))
upto = match.end()
if upto != len(token):
raise TemplateSyntaxError("Could not parse the remainder: '%s' from '%s'" % (token[upto:], token))