File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
source_code_final/feedback
source_code_initial/feedback Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66
77@shared_task ()
88def 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 \n Thank you!" ,
14- "support@yourdomain .com" ,
14+ "support@example .com" ,
1515 [email_address ],
1616 fail_silently = False ,
1717 )
Original file line number Diff line number Diff 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 \n Thank you!" ,
19- "support@yourdomain .com" ,
19+ "support@example .com" ,
2020 [self .cleaned_data ["email" ]],
2121 fail_silently = False ,
2222 )
You can’t perform that action at this time.
0 commit comments