code: def service_related_triggers_switch_to(request, user_service_id, switch):
      
      status = True
      if switch == 'off':
          status = False
  
      TriggerService.objects.filter(provider__id=user_service_id).update(status=status)
      TriggerService.objects.filter(consumer__id=user_service_id).update(status=status)
  
      service = UserService.objects.get(id=user_service_id).name.name.split('Service')[1]
      messages.warning(request, _('All triggers of %s are now %s') % (service, switch))
  
      return HttpResponseRedirect(reverse('user_services'))
docs: switch the status of all the triggers related to the service,
          then go back home
          :param request: request object
          :param user_service_id: the service ID to switch the status to
          True or False of all the related trigger
          :param switch: the switch value
          :type request: HttpRequest object
          :type user_service_id: int
          :type switch: string off or on