mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
count->exists
This commit is contained in:
parent
156aeb931f
commit
534faf011c
@ -569,7 +569,7 @@ class OrganizationList(ListCreateAPIView):
|
||||
# by the license, then we are only willing to create this organization
|
||||
# if no organizations exist in the system.
|
||||
if (not feature_enabled('multiple_organizations') and
|
||||
self.model.objects.count() > 0):
|
||||
self.model.objects.exists()):
|
||||
raise LicenseForbids('Your Tower license only permits a single '
|
||||
'organization to exist.')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user