Ensure templates are compatible with Django 1.4