#NEWLINE# @ list_route ( methods = [ 'post' ] ) #NEWLINE# def reset_password( self , request ) : #NEWLINE# #INDENT# password = request . data . get ( 'password' , 'N' ) #NEWLINE# password_reset_model = get_model_or_none ( PasswordResetModel , reset_key = request . data . get ( 'reset_key' , '' ) ) #NEWLINE# serializer = UserSerializer ( context = { #NEWLINE# #INDENT# 'request' : request , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( data , http_status ) = serializer . reset_password ( reset_model = password_reset_model , password = password ) #NEWLINE# return Response ( data = data , status = http_status )