Skip to content

Commit cc075f4

Browse files
martin-martinacsany
andcommitted
Apply TR suggestions and fix a typo
Co-authored-by: Philipp <[email protected]>
1 parent 34d563b commit cc075f4

File tree

2 files changed

+4
-4
lines changed
  • celery-async-tasks

2 files changed

+4
-4
lines changed

celery-async-tasks/source_code_final/feedback/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
@shared_task()
88
def send_feedback_email_task(email_address, message):
9-
"""Sends an email when the feedback form had been submitted."""
9+
"""Sends an email when the feedback form has been submitted."""
1010
sleep(20) # Simulate expensive operation that freezes Django
1111
send_mail(
1212
"Your Feedback",
1313
f"\t{message}\n\nThank you!",
14-
"support@yourdomain.com",
14+
"support@example.com",
1515
[email_address],
1616
fail_silently=False,
1717
)

celery-async-tasks/source_code_initial/feedback/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class FeedbackForm(forms.Form):
1111
)
1212

1313
def send_email(self):
14-
"""Sends an email when the feedback form had been submitted."""
14+
"""Sends an email when the feedback form has been submitted."""
1515
sleep(20) # Simulate expensive operation that freezes Django
1616
send_mail(
1717
"Your Feedback",
1818
f"\t{self.cleaned_data['message']}\n\nThank you!",
19-
"support@yourdomain.com",
19+
"support@example.com",
2020
[self.cleaned_data["email"]],
2121
fail_silently=False,
2222
)

0 commit comments

Comments
 (0)