(self, web_user)
Call this method to confirm that a user has accepted the invite to
        a domain and add them as a member to the domain in the invitation.
        :param web_user: WebUser
Call this method to confirm that a user has accepted the invite to
        a domain and add them as a member to the domain in the invitation.
        :param web_user: WebUser
Call this method to confirm that a user has accepted the invite to a domain and add them as a member to the domain in the invitation . : param web_user : WebUser
def accept_invitation_and_join_domain(self, web_user):
        """
        Call this method to confirm that a user has accepted the invite to
        a domain and add them as a member to the domain in the invitation.
        :param web_user: WebUser
        """
        web_user.add_as_web_user(
            self.domain,
            role=self.role,
            location_id=self.supply_point,
            program_id=self.program,
        )
        self.is_accepted = True
        self.save()
        self._send_confirmation_email()
def accept_invitation_and_join_domain ( self , web_user ) : web_user . add_as_web_user ( self . domain , role = self . role , location_id = self . supply_point , program_id = self . program , ) self . is_accepted = True self . save ( ) self . _send_confirmation_email ( )