removed bad code that isn't supported in django anymore