def register(self, form):
    new_user = self.create_inactive_user(form)
    users_signals.user_registered.send(sender=self.__class__, user=new_user, request=self.request)
    return new_user
def register(self, form):
    new_user = self.create_inactive_user(form)
    users_signals.user_registered.send(sender=self.__class__, user=new_user, request=self.request)
    return new_user