Ticket #5243: defaulttags.patch

File defaulttags.patch, 630 bytes (added by Bjørn Stabell <bjorn@…>, 17 years ago)

Patch to make {% load module.submodule %} work

  • django/template/defaulttags.py

     
    792792    for taglib in bits[1:]:
    793793        # add the library to the parser
    794794        try:
    795             lib = get_library("django.templatetags.%s" % taglib.split('.')[-1])
     795            lib = get_library("django.templatetags.%s" % taglib)
    796796            parser.add_library(lib)
    797797        except InvalidTemplateLibrary, e:
    798798            raise TemplateSyntaxError, "'%s' is not a valid tag library: %s" % (taglib, e)
Back to Top