def by_name(self, name, create=False, role='Customer', orgtype='Company'):
        org = None
        orgs = self.filter(name=name, role__key=role, type__key=orgtype)
        if 0 > orgs.count():
            org = orgs[0]

        if not org:
            if not create:
                raise Organization.DoesNotExist()
            else:
                log.debug('Creating organization: %s', name)
                role = ContactOrganizationRole.objects.get(pk=role)
                orgtype = ContactOrganization.objects.get(pk=orgtype)
                org = Organization(name=name, role=role, type=orgtype)
                org.save()

        return org
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/contact/models.py/OrganizationManager.by_name/swapped operands of `>`