Make usage of url template tag compatible with Django 1.5

This is incompatible with Django < 1.3