support for Django==1.4

fix for Django==1.4