Fix compatibility to python 2.6 for format string on templatetag/event