parameters: (self, request, pk=None, user_id=None)
docstring: Remove user from Organization
  
          Remove user from Organization
docstring_summary: Remove user from Organization
docstring_tokens: Remove user from Organization
function: def remove_user_from_govern(self, request, pk=None, user_id=None):
          """
          Remove user from Organization
  
          Remove user from Organization
          """
          try:
              user = UserProfile.objects.get(id=user_id, organization__id=pk)
          except ObjectDoesNotExist:
              raise ResourceNotFound
          else:
              user.organization = None
              user.save()
  
              return Response(status=status.HTTP_204_NO_CONTENT)
function_tokens: def remove_user_from_govern ( self , request , pk = None , user_id = None ) : try : user = UserProfile . objects . get ( id = user_id , organization__id = pk ) except ObjectDoesNotExist : raise ResourceNotFound else : user . organization = None user . save ( ) return Response ( status = status . HTTP_204_NO_CONTENT )