mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user