#NEWLINE# @ detail_route ( methods = [ 'GET' ] ) #NEWLINE# def starred( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# 'Return projects starred for this user.' #NEWLINE# user_profile = self . get_object ( ) #NEWLINE# user = user_profile . user #NEWLINE# projects = user . project_set . all ( ) #NEWLINE# serializer = ProjectSerializer ( projects , context = { #NEWLINE# #INDENT# 'request' : request , #NEWLINE# #UNINDENT# } , many = True ) #NEWLINE# return Response ( data = user . data )