#NEWLINE# def register( self , **cleaned_data ) : #NEWLINE# #INDENT# User . objects . create_user ( self [ 'username' ] , cleaned_data [ 'email' ] , cleaned_data [ 'password1' ] ) #NEWLINE# user = authenticate ( username = cleaned_data [ 'username' ] , password = cleaned_data [ 'password1' ] ) #NEWLINE# if user . is_active : #NEWLINE# #INDENT# login ( self . request , user ) #NEWLINE# #UNINDENT# return cleaned_data [ 'next' ]