Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
populate_db: Use do_change_user_role to set polonius as guest.
Sahil Batra828f0e18479a
diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.pyindex 3b322cbd14c..2fea0e1584b 100644--- a/zilencer/management/commands/populate_db.py+++ b/zilencer/management/commands/populate_db.py@@ -494,9 +494,8 @@ class Command(BaseCommand):shiva = get_user_by_delivery_email("[email protected]", zulip_realm)do_change_user_role(shiva, UserProfile.ROLE_MODERATOR, acting_user=None)- guest_user = get_user_by_delivery_email("[email protected]", zulip_realm)- guest_user.role = UserProfile.ROLE_GUEST- guest_user.save(update_fields=["role"])+ polonius = get_user_by_delivery_email("[email protected]", zulip_realm)+ do_change_user_role(polonius, UserProfile.ROLE_GUEST, acting_user=None)# These bots are directly referenced from code and thus# are needed for the test suite.