mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
Refresh the old instance so the returned obj is up-to-date
This commit is contained in:
parent
5f888d8400
commit
bab2745392
@ -315,6 +315,7 @@ class ImplicitRoleField(models.ForeignKey):
|
||||
if cur_role.implicit_parents != new_parents_json:
|
||||
cur_role.implicit_parents = new_parents_json
|
||||
cur_role.save()
|
||||
instance.refresh_from_db()
|
||||
|
||||
|
||||
def _resolve_parent_roles(self, instance):
|
||||
|
Loading…
Reference in New Issue
Block a user