'Check that account owner is the same as my company'

def clean_default_account(self):

    account = self.cleaned_data['default_account']
    try:
        company = self.cleaned_data['my_company']
        if (not (account.owner_id == company.id)):
            raise forms.ValidationError(_('Default    Account    has    to    belong    to    your    company'))
    except KeyError:
        pass
    return account
