mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
get_absolute_url implemenation for Role
This commit is contained in:
@@ -45,6 +45,9 @@ class Role(CommonModelNameNotUnique):
|
|||||||
super(Role, self).save(*args, **kwargs)
|
super(Role, self).save(*args, **kwargs)
|
||||||
self.rebuild_role_ancestor_list()
|
self.rebuild_role_ancestor_list()
|
||||||
|
|
||||||
|
def get_absolute_url(self):
|
||||||
|
return reverse('api:role_detail', args=(self.pk,))
|
||||||
|
|
||||||
def rebuild_role_ancestor_list(self):
|
def rebuild_role_ancestor_list(self):
|
||||||
'''
|
'''
|
||||||
Updates our `ancestors` map to accurately reflect all of the ancestors for a role
|
Updates our `ancestors` map to accurately reflect all of the ancestors for a role
|
||||||
|
|||||||
Reference in New Issue
Block a user