'Check that my company has an account'

def clean_my_company(self, *args, **kwargs):

    my_company = self.cleaned_data['my_company']
    if (not my_company.account_set.count()):
        raise forms.ValidationError(_('Your    company    has    to    have    at    least    one    Financial    Account'))
    return my_company
