diff --git a/pontoon/base/migrations/0052_rename_logged_in_users.py b/pontoon/base/migrations/0052_rename_logged_in_users.py new file mode 100644 index 0000000000..f9faed4ea1 --- /dev/null +++ b/pontoon/base/migrations/0052_rename_logged_in_users.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.15 on 2023-12-05 20:02 + +from django.db import migrations + + +def rename_logged_in_users(apps, schema_editor): + UserProfile = apps.get_model("base", "UserProfile") + UserProfile.objects.filter(visibility_email="Logged in users").update( + visibility_email="Logged-in users" + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ("base", "0051_localecodehistory"), + ] + + operations = [ + migrations.RunPython( + code=rename_logged_in_users, + reverse_code=migrations.RunPython.noop, + ), + ]