changed syntax since django 1.5