#NEWLINE# def _create_user( self , username , email , password , is_staff , is_superuser , is_active = True , **extra_fields ) : #NEWLINE# #INDENT# '\n        Creates and saves a User with the given username, email and password.\n        ' #NEWLINE# if ( not username ) : #NEWLINE# #INDENT# raise ValueError ( 'The given username must be set' ) #NEWLINE# #UNINDENT# email = self . normalize_email ( email ) #NEWLINE# user = self . model ( username = username , email = email , is_staff = is_staff , is_active = is_active , is_superuser = is_superuser , ** extra_fields ) #NEWLINE# user . set_password ( password ) #NEWLINE# user . save ( using = self . _db ) #NEWLINE# return password