Fixing Django 1.5 incompatibilities with url templatetag.