mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
make special case for no results slightly more clear
This commit is contained in:
@@ -673,7 +673,7 @@ class OrganizationDetail(RetrieveUpdateDestroyAPIView):
|
||||
admins=Count('admin_role__members', distinct=True)
|
||||
).values('users', 'admins')
|
||||
|
||||
if direct_counts.count() == 0:
|
||||
if not direct_counts:
|
||||
return full_context
|
||||
|
||||
org_counts = direct_counts[0]
|
||||
|
||||
Reference in New Issue
Block a user