changed syntax since django 1.5

small fix (changes in syntax)