From df9f1bc29d0fe4c0ca22a44758a63b8982c6adde Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Tue, 26 Nov 2024 15:23:42 +0000 Subject: [PATCH] fixup! Replace unwanted chars in person names --- .../management/commands/people_clean_person_names.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ynr/apps/people/management/commands/people_clean_person_names.py b/ynr/apps/people/management/commands/people_clean_person_names.py index e2f22260e..24fb92264 100644 --- a/ynr/apps/people/management/commands/people_clean_person_names.py +++ b/ynr/apps/people/management/commands/people_clean_person_names.py @@ -60,3 +60,10 @@ def handle(self, *args, **options): other_name.delete() else: other_name.save() + bot = CandidateBot( + person_id=other_name.content_object.pk, update=True + ) + bot.edits_made = True + bot.save( + f"Replacing {repr(char)} with {repr(replace)} in person other name" + )