Fixed #16200 -- Stopped TemplateIfParser from returning something in `__init__`. Thanks, traff.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
662b372d02
commit
a1991e37f4
|
@ -846,7 +846,7 @@ class TemplateIfParser(IfParser):
|
|||
|
||||
def __init__(self, parser, *args, **kwargs):
|
||||
self.template_parser = parser
|
||||
return super(TemplateIfParser, self).__init__(*args, **kwargs)
|
||||
super(TemplateIfParser, self).__init__(*args, **kwargs)
|
||||
|
||||
def create_var(self, value):
|
||||
return TemplateLiteral(self.template_parser.compile_filter(value), value)
|
||||
|
|
Loading…
Reference in New Issue