Fixed compatibility with the 'url' tag from Django 1.5

This works for Django 1.3 and up.