Closed asencis closed 3 years ago
If you're using the default models, any of the following ought to work:
Organization.objects.filter(users=user).exists()
OrganizationUser.objects.filter(user=user).exists()
user.organization_users.all().exists() # use the reverse relation
As the title suggests, is there a way to test if a User is a member of any Organisation?