Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
send_custom_email: is_realm_admin is a property, not a real column.
Alex Vandiver64df8c707547
diff --git a/zerver/management/commands/send_custom_email.py b/zerver/management/commands/send_custom_email.pyindex ce27835a032..cf8a57f220e 100644--- a/zerver/management/commands/send_custom_email.py+++ b/zerver/management/commands/send_custom_email.py@@ -190,7 +190,9 @@ class Command(ZulipBaseCommand):add_context = add_context_from_dictif admins_only:- users = users.filter(is_realm_admin=True)+ users = users.filter(+ role__in=[UserProfile.ROLE_REALM_ADMINISTRATOR, UserProfile.ROLE_REALM_OWNER]+ )# Only email users who've agreed to the terms of service.if settings.TERMS_OF_SERVICE_VERSION is not None: