migrations: Fix migration 0617 case sensitivity bug.

This commit is contained in:
Tim Abbott 2024-11-04 22:10:37 -08:00
parent 9ac1d64138
commit 5571fb6a3e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def remove_prefix_from_archived_streams(
continue
# Check if there's an active stream or another archived stream with the new name
if not Stream.objects.filter(realm=archived_stream.realm, name=new_name).exists():
if not Stream.objects.filter(realm=archived_stream.realm, name__iexact=new_name).exists():
archived_stream.name = new_name
archived_stream.save(update_fields=["name"])