Skip to content

Commit

Permalink
one last fix for grant migration
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Dec 31, 2019
1 parent 9c25720 commit 1257156
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/debug/migrate_grant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1257156

Please sign in to comment.