#NEWLINE# def get( self , user ) : #NEWLINE# #INDENT# url = reverse ( 'api:project_single_media' , kwargs = { #NEWLINE# #INDENT# 'project_id' : self . project . id , #NEWLINE# 'contribution_id' : self . contribution . id , #NEWLINE# 'file_id' : self . image_file . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# request = self . factory . get ( url ) #NEWLINE# force_authenticate ( request , user ) #NEWLINE# view = SingleMediaAPIView . as_view ( ) #NEWLINE# return view ( request , project_id = self . project . id , contribution_id = self . contribution . id , file_id = self . image_file . id ) . render ( )