Fix reverse_named_url broken in Django 1.5

Fix error on Django 1.5 because of deprecated template tag syntax since Django 1.3.