'unenrolls student, issues refund'

def form_valid(self, form):

    user = form.cleaned_data['user']
    course_id = form.cleaned_data['course_id']
    enrollment = form.cleaned_data['enrollment']
    cert = form.cleaned_data['cert']
    enrollment.can_refund = True
    enrollment.update_enrollment(is_active=False)
    log.info(u'%s    manually    refunded    %s    %s', self.request.user, user, course_id)
    messages.success(self.request, _('Unenrolled    {user}    from    {course_id}').format(user=user, course_id=course_id))
    messages.success(self.request, _('Refunded    {cost}    for    order    id    {order_id}').format(cost=cert.unit_cost, order_id=cert.order.id))
    return HttpResponseRedirect('/support/refund/')
