1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

Fixed duplicate active_roles entries

#1692
This commit is contained in:
Akita Noek 2016-04-25 20:33:59 -04:00
parent 48f61b43e7
commit 9921d90316

View File

@ -437,5 +437,5 @@ def get_roles_on_resource(resource, accessor):
ancestor__in=roles,
content_type_id=ContentType.objects.get_for_model(resource).id,
object_id=resource.id
).values_list('role_field', flat=True)
).values_list('role_field', flat=True).distinct()
]