Ticket #2208: filter-arg-emptystring.diff

File filter-arg-emptystring.diff, 678 bytes (added by mattmcc, 9 years ago)
  • django/template/__init__.py

     
    531531                constant_arg, i18n_arg, var_arg = match.group("constant_arg", "i18n_arg", "var_arg")
    532532                if i18n_arg:
    533533                    args.append((False, _(i18n_arg.replace(r'\"', '"'))))
    534                 elif constant_arg:
     534                elif constant_arg or constant_arg != None:
    535535                    args.append((False, constant_arg.replace(r'\"', '"')))
    536536                elif var_arg:
    537537                    args.append((True, var_arg))
Back to Top