Browse files

Fixed #5243 -- Allow loading of templatetags from subdirectories (via…

… dotted notation in {% load %}). Thanks, Bjørn Stabell.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 951ecbf commit d30badc0eccbb05b54a5cb4c9fc146d6b4ba6010 @malcolmt malcolmt committed Sep 15, 2007
Showing with 2 additions and 1 deletion.
  1. +1 −0 AUTHORS
  2. +1 −1 django/template/defaulttags.py
View
1 AUTHORS
@@ -270,6 +270,7 @@ answer newbie questions, and generally made Django that much better:
sopel
Leo Soto <leo.soto@gmail.com>
Wiliam Alves de Souza <wiliamsouza83@gmail.com>
+ Bj??rn Stabell <bjorn@exoweb.net>
Georgi Stanojevski <glisha@gmail.com>
Vasiliy Stavenko <stavenko@gmail.com>
Thomas Steinacher <http://www.eggdrop.ch/>
View
2 django/template/defaulttags.py
@@ -795,7 +795,7 @@ def load(parser, token):
for taglib in bits[1:]:
# add the library to the parser
try:
- lib = get_library("django.templatetags.%s" % taglib.split('.')[-1])
+ lib = get_library("django.templatetags.%s" % taglib)
parser.add_library(lib)
except InvalidTemplateLibrary, e:
raise TemplateSyntaxError, "'%s' is not a valid tag library: %s" % (taglib, e)

0 comments on commit d30badc

Please sign in to comment.