'Save the form data.'

def save(self, commit=True):

    if self.is_valid():
        course_key = self.cleaned_data.get('course_id')
        verification_deadline = self.cleaned_data.get('verification_deadline')
        mode_slug = self.cleaned_data.get('mode_slug')
        if ((course_key is not None) and (mode_slug in CourseMode.VERIFIED_MODES)):
            verification_models.VerificationDeadline.set_deadline(course_key, verification_deadline)
    return super(CourseModeForm, self).save(commit=commit)
