Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d30badc0eccbb05b54a5cb4c9fc146d6b4ba6010 1 parent 951ecbf
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  AUTHORS
  2. +1 −1  django/template/defaulttags.py
1  AUTHORS
View
@@ -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/>
2  django/template/defaulttags.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.