'Setup the masquerade information to allow the request to
be processed for the requested effective user.'

def _setup_masquerade_for_effective_user(self):

    self.real_user = self.request.user
    (self.masquerade, self.effective_user) = setup_masquerade(self.request, self.course_key, self.is_staff, reset_masquerade_data=True)
    self.request.user = self.effective_user
