mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
7 lines
210 B
Python
7 lines
210 B
Python
from collections import Counter
|
|
|
|
from awx.main.models.rbac import Role
|
|
|
|
|
|
print(Counter(r.id == getattr(getattr(r.content_object, r.role_field, None), 'id', None) for r in Role.objects.all() if r.content_type))
|