From 1257156a857fb1ac4e744ce1950d02c4292c910e Mon Sep 17 00:00:00 2001 From: Owocki Date: Tue, 31 Dec 2019 09:28:22 -0700 Subject: [PATCH] one last fix for grant migration --- scripts/debug/migrate_grant.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/debug/migrate_grant.py b/scripts/debug/migrate_grant.py index 3eb93b832e5..07083d0e6c0 100644 --- a/scripts/debug/migrate_grant.py +++ b/scripts/debug/migrate_grant.py @@ -28,9 +28,10 @@ obj.grant = new_grant obj.save() -# do not transfer CLR match over +for obj in old_grant.clr_matches.all(): + obj.grant = new_grant + obj.save() old_grant.save() -new_grant.hidden = True +old_grant.hidden = True new_grant.save() -