#NEWLINE# def create_inactive_user( self , username , email , password , site , send_email = True ) : #NEWLINE# #INDENT# '\n        Create a new, inactive ``User``, generate a\n        ``RegistrationProfile`` and email its activation key to the\n        ``User``, returning the new ``User``.\n\n        By default, an activation email will be sent to the new\n        user. To disable this, pass ``send_email=False``.\n        \n        ' #NEWLINE# new_user = User . objects . create_user ( username , email , username ) #NEWLINE# new_user . is_active = False #NEWLINE# new_user . save ( ) #NEWLINE# registration_profile = self . create_profile ( new_user ) #NEWLINE# if send_email : #NEWLINE# #INDENT# registration_profile . send_activation_email ( site ) #NEWLINE# #UNINDENT# return new_user