1
0
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:
Wayne Witzel III 2018-04-04 07:47:13 -04:00
parent 5f888d8400
commit bab2745392

View File

@ -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):