From bab27453924286411c085077ccc78b9f54772070 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Wed, 4 Apr 2018 07:47:13 -0400 Subject: [PATCH] Refresh the old instance so the returned obj is up-to-date --- awx/main/fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/fields.py b/awx/main/fields.py index c39cea014c..d53f00a0c3 100644 --- a/awx/main/fields.py +++ b/awx/main/fields.py @@ -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):