migrations: Fix RealmAuditLog creation in migration 0374.

This commit is contained in:
Mateusz Mandera 2022-01-25 21:17:23 +01:00 committed by Tim Abbott
parent ce49c4ca9e
commit 40aa156b28
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ def backfill_user_deleted_logs(apps: StateApps, schema_editor: DatabaseSchemaEdi
is_mirror_dummy=True, is_active=False, delivery_email__regex=r"^deleteduser\d+@.+"
):
entry = RealmAuditLog(
realm_id=user_profile.realm_id,
modified_user=user_profile,
acting_user=user_profile,
event_type=RealmAuditLog.USER_DELETED,