mirror of https://github.com/zulip/zulip.git
673a01ea0c
Creates a new "realm_deactivated" email that can be sent to realm owners as part of `do_deactivate_realm`, via a boolean flag, `email_owners`. This flag is set to `False` when `do_deactivate_realm` is used for realm exports or changing a realm's subdomain, so that the active organization owners are not emailed in those cases. This flag is optional for the `deactivate_realm` management command, but as there is no active user passed in that case, then the email is sent without referencing who deactivated the realm. It is passed as `True` for the support analytics view, but the email that is generated does not include information about the support admin user who completed the request for organization deactivation. When an active organization owner deactivates the organization, then the flag is `True` and an email is sent to them as well as any other active organization owners, with a slight variation in the email text for those two cases. Adds specific tests for when `email_owners` is passed as `True`. All existing tests for other functionality of `do_deactivate_user` pass the flag as `False`. Adds `localize` from django.util.formats as a jinja env filter so that the dates in these emails are internationlized for the owner's default language setting in the "realm_deactivated" email templates. Fixes #24685. |
||
---|---|---|
.. | ||
.gitignore | ||
account_registered.html | ||
account_registered.subject.txt | ||
account_registered.txt | ||
confirm_demo_organization_email.html | ||
confirm_demo_organization_email.subject.txt | ||
confirm_demo_organization_email.txt | ||
confirm_new_email.html | ||
confirm_new_email.subject.txt | ||
confirm_new_email.txt | ||
confirm_registration.html | ||
confirm_registration.subject.txt | ||
confirm_registration.txt | ||
custom_email_base.pre.html | ||
deactivate.html | ||
deactivate.subject.txt | ||
deactivate.txt | ||
demo_request.html | ||
demo_request.subject.txt | ||
demo_request.txt | ||
digest.html | ||
digest.subject.txt | ||
digest.txt | ||
email.css | ||
email_base_default.html | ||
email_base_marketing.html | ||
email_base_messages.html | ||
error_processing_invoice.html | ||
error_processing_invoice.subject.txt | ||
error_processing_invoice.txt | ||
find_team.html | ||
find_team.subject.txt | ||
find_team.txt | ||
internal_billing_notice.html | ||
internal_billing_notice.subject.txt | ||
internal_billing_notice.txt | ||
invitation.html | ||
invitation.subject.txt | ||
invitation.txt | ||
invitation_reminder.html | ||
invitation_reminder.subject.txt | ||
invitation_reminder.txt | ||
macros.html | ||
missed_message.html | ||
missed_message.subject.txt | ||
missed_message.txt | ||
notify_change_in_email.html | ||
notify_change_in_email.subject.txt | ||
notify_change_in_email.txt | ||
notify_new_login.html | ||
notify_new_login.subject.txt | ||
notify_new_login.txt | ||
onboarding_team_to_zulip.html | ||
onboarding_team_to_zulip.subject.txt | ||
onboarding_team_to_zulip.txt | ||
onboarding_zulip_guide.html | ||
onboarding_zulip_guide.subject.txt | ||
onboarding_zulip_guide.txt | ||
onboarding_zulip_topics.html | ||
onboarding_zulip_topics.subject.txt | ||
onboarding_zulip_topics.txt | ||
password_reset.html | ||
password_reset.subject.txt | ||
password_reset.txt | ||
realm_auto_downgraded.html | ||
realm_auto_downgraded.subject.txt | ||
realm_auto_downgraded.txt | ||
realm_deactivated.html | ||
realm_deactivated.subject.txt | ||
realm_deactivated.txt | ||
realm_reactivation.html | ||
realm_reactivation.subject.txt | ||
realm_reactivation.txt | ||
remote_billing_legacy_server_confirm_login.html | ||
remote_billing_legacy_server_confirm_login.subject.txt | ||
remote_billing_legacy_server_confirm_login.txt | ||
remote_realm_billing_confirm_login.html | ||
remote_realm_billing_confirm_login.subject.txt | ||
remote_realm_billing_confirm_login.txt | ||
sponsorship_approved_community_plan.html | ||
sponsorship_approved_community_plan.subject.txt | ||
sponsorship_approved_community_plan.txt | ||
sponsorship_request.html | ||
sponsorship_request.subject.txt | ||
sponsorship_request.txt | ||
stylelint.config.js | ||
support_request.html | ||
support_request.subject.txt | ||
support_request.txt |