tag_function() uses name of decorated function wich in python 3.3 in lower case but python 3.2 in same case as function name
|Reported by:||alex_po||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I got an error: Invalid block tag: 'addtoblock', expected 'endblock'. While i have properly installed sekizai. When i tried to debug i found that tag_function() (django/template/base.py line 1064) uses a name of decorated function for adding a template tag in tags dict. But sekizai uses name for decorated function with CamelCase for instance Addtoblock. In result the tag name is 'Addtoblock'.
The stranges are that in python 3.2 the name of decorated function is such as a name of class but in python 3.3 the name of decorated function is in lowercase. In result all works well for python 3.3 (template tag is 'addtoblock') but there is error (invalid block tag. template tag is 'Addtoblock') for python 3.2.