mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-13 11:31:51 -05:00
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