#NEWLINE# def post( self , request , format = None ) : #NEWLINE# #INDENT# current_user = request . user . username #NEWLINE# existing_obj = None #NEWLINE# for obj in MonitoringChannel . get_tenant_objects ( ) . all ( ) : #NEWLINE# #INDENT# if ( request . creator . username == current_user ) : #NEWLINE# #INDENT# existing_obj = obj #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if existing_obj : #NEWLINE# #INDENT# serializer = MonitoringChannelSerializer ( existing_obj ) #NEWLINE# headers = self . get_success_headers ( serializer . data ) #NEWLINE# return Response ( serializer . data , status = status . HTTP_200_OK ) #NEWLINE# #UNINDENT# return super ( MonitoringChannelList , self ) . post ( request , format )