Remove print statement

This commit is contained in:
Erin Song 2025-01-27 09:39:30 -08:00
parent 4dd208d6f5
commit 074ecf6f66
No known key found for this signature in database
4 changed files with 35 additions and 1 deletions

View file

@ -963,7 +963,6 @@ class DomainRequest(TimeStampedModel):
permissions=[UserPortfolioPermissionChoices.VIEW_ALL_REQUESTS], include_admin=True permissions=[UserPortfolioPermissionChoices.VIEW_ALL_REQUESTS], include_admin=True
) )
cc_addresses = list(portfolio_view_requests_users.values_list("email", flat=True)) cc_addresses = list(portfolio_view_requests_users.values_list("email", flat=True))
print("cc addresses: ", cc_addresses)
send_templated_email( send_templated_email(
email_template, email_template,

View file

@ -0,0 +1,31 @@
{% autoescape off %}{# In a text file, we don't want to have HTML entities escaped #}
Hi, {{ recipient.first_name }}.
A domain manager was removed from {{ domain.name }}.
REMOVED BY: {{ "populate" }}
REMOVED ON: {{date}}
MANAGER REMOVED: {{ "populate" }}
----------------------------------------------------------------
WHY DID YOU RECEIVE THIS EMAIL?
Youre listed as a domain manager for {{ domain.name }}, so youll receive a notification whenever a domain manager is removed from that domain.
If you have questions or concerns, reach out to the person who removed the domain manager or reply to this email.
THANK YOU
.Gov helps the public identify official, trusted information. Thank you for using a .gov domain.
----------------------------------------------------------------
The .gov team
Contact us <https://get.gov/contact/>
Learn about .gov <https://get.gov>
The .gov registry is a part of the Cybersecurity and Infrastructure Security Agency (CISA) <https://cisa.gov/>.
{% endautoescape %}

View file

@ -0,0 +1 @@
A domain manager was removed from {{ domain.name }}

View file

@ -1336,6 +1336,9 @@ class DomainDeleteUserView(UserDomainRolePermissionDeleteView):
# Is the user deleting themselves? If so, display a different message # Is the user deleting themselves? If so, display a different message
delete_self = self.request.user == self.object.user delete_self = self.request.user == self.object.user
# Email domain managers
# Add a success message # Add a success message
messages.success(self.request, self.get_success_message(delete_self)) messages.success(self.request, self.get_success_message(delete_self))
return redirect(self.get_success_url()) return redirect(self.get_success_url())