bring templates up to speed with django 1.5