changes to registration api in django 1.6