'If org and course-id exists then Check organization name
against the given course.'

def clean_org(self):

    if (self.cleaned_data.get('course_id') and self.cleaned_data['org']):
        org = self.cleaned_data['org']
        org_name = self.cleaned_data.get('course_id').org
        if (org.lower() != org_name.lower()):
            raise forms.ValidationError(u'Org    name    {}    is    not    valid.    Valid    name    is    {}.'.format(org, org_name))
    return self.cleaned_data['org']
