diff --git a/zephyr/management/commands/populate_db.py b/zephyr/management/commands/populate_db.py index 64b66950b7..0ca1d30288 100644 --- a/zephyr/management/commands/populate_db.py +++ b/zephyr/management/commands/populate_db.py @@ -331,7 +331,7 @@ def restore_saved_messages(): streams[stream.id] = stream for recipient in Recipient.objects.filter(type=Recipient.STREAM): stream_recipients[(streams[recipient.type_id].realm_id, - streams[recipient.type_id].name)] = recipient + streams[recipient.type_id].name.lower())] = recipient print datetime.datetime.now(), "Creating users..." bulk_create_users(realms, user_set)