def form_valid(self, form):
        if self.request.user.can_impersonate():
            session = self.request.session
            session['impersonate_id'] = form.cleaned_data['user_to_become'].pk
            session.save()
        return HttpResponseRedirect(self.get_success_url())
Remove an event from the queue.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/views.py/BecomeUserView.form_valid--crossover with--dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/sched.py/scheduler.cancel