Updating templates to fit Django 1.5 syntax