fix for old Django