mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 03:06:01 +02:00
Remove print statement
This commit is contained in:
parent
4dd208d6f5
commit
074ecf6f66
4 changed files with 35 additions and 1 deletions
|
@ -963,7 +963,6 @@ class DomainRequest(TimeStampedModel):
|
|||
permissions=[UserPortfolioPermissionChoices.VIEW_ALL_REQUESTS], include_admin=True
|
||||
)
|
||||
cc_addresses = list(portfolio_view_requests_users.values_list("email", flat=True))
|
||||
print("cc addresses: ", cc_addresses)
|
||||
|
||||
send_templated_email(
|
||||
email_template,
|
||||
|
|
31
src/registrar/templates/emails/domain_manager_removed.txt
Normal file
31
src/registrar/templates/emails/domain_manager_removed.txt
Normal 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?
|
||||
|
||||
You’re listed as a domain manager for {{ domain.name }}, so you’ll 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 %}
|
|
@ -0,0 +1 @@
|
|||
A domain manager was removed from {{ domain.name }}
|
|
@ -1336,6 +1336,9 @@ class DomainDeleteUserView(UserDomainRolePermissionDeleteView):
|
|||
# Is the user deleting themselves? If so, display a different message
|
||||
delete_self = self.request.user == self.object.user
|
||||
|
||||
# Email domain managers
|
||||
|
||||
|
||||
# Add a success message
|
||||
messages.success(self.request, self.get_success_message(delete_self))
|
||||
return redirect(self.get_success_url())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue