updated templates to use the new django 1.5 syntax