Fix up included templates to be compatible with Django 1.5