From 5195451519f53441240b01e4befb51c6f07a94e5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 17 May 2013 10:36:38 -0400 Subject: [PATCH] populate_db: Fix parsing of user_email_changed events. Note that this doesn't actually handle them properly -- it just parses them. (imported from commit eca061c9657a970ae6c0d622958a16097ed99ac5) --- zephyr/management/commands/populate_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/management/commands/populate_db.py b/zephyr/management/commands/populate_db.py index f9ba6d5dd4..b2ef9b402d 100644 --- a/zephyr/management/commands/populate_db.py +++ b/zephyr/management/commands/populate_db.py @@ -301,6 +301,9 @@ def restore_saved_messages(): old_message["user"] = fix_email(old_message["user"]) elif message_type == "subscription_property": old_message["user"] = fix_email(old_message["user"]) + elif message_type == "user_email_changed": + old_message["old_email"] = fix_email(old_message["old_email"]) + old_message["new_email"] = fix_email(old_message["new_email"]) elif message_type.startswith("user_"): old_message["user"] = fix_email(old_message["user"]) elif message_type.startswith("enable_"):