#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'commit' ] = False #NEWLINE# account = super ( NewAccountForm , self ) . save ( * args , ** kwargs ) #NEWLINE# account . code = codes . generate ( ) #NEWLINE# if hasattr ( self , '_account_type' ) : #NEWLINE# #INDENT# account . account_type = self . _account_type #NEWLINE# #UNINDENT# account . save ( ) #NEWLINE# self . save_m2m ( ) #NEWLINE# return account