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() -