porting to django==1.5.1
porting to django==1.5.1