#NEWLINE# def retrieve( self , request , pk ) : #NEWLINE# #INDENT# product_obj = shop . api . get_product ( pk ) #NEWLINE# if ( product_obj is None ) : #NEWLINE# #INDENT# return Response ( status = status . HTTP_404_NOT_FOUND ) #NEWLINE# #UNINDENT# serializer = ProductSerializer ( product_obj ) #NEWLINE# return Response ( data = serializer . data , status = status . HTTP_200_OK )