Skip to content

Commit

Permalink
Archive migration sources instead of deleting them.
Browse files Browse the repository at this point in the history
  • Loading branch information
colons committed Mar 10, 2024
1 parent 47172f4 commit 5d02580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nkdsu/apps/vote/management/commands/migrate_away_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ def handle(self, to_remove_id, target_id, *args, **options) -> None:
target.has_hook = to_remove.has_hook

target.save()
to_remove.delete()

to_remove.archived = True
to_remove.save()

0 comments on commit 5d02580

Please sign in to comment.