#NEWLINE# def read_only_decorator( view_function ) : #NEWLINE# #INDENT# def view_function_decorated( request , read_only_token , **args ) : #NEWLINE# #INDENT# portfolio = Portfolio . objects . filter ( read_only_token__exact = read_only_token ) [ 0 ] #NEWLINE# return view_function ( request , portfolio = portfolio , ** args ) #NEWLINE# #UNINDENT# return view_function