django 1.5.x fixes and fixed typo