working in django1.7
fixed for 1.7