Update templates to Django 1.5 sytax.