File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11import os
22from bs4 import BeautifulSoup
33from premailer import Premailer
4- from drf_friend .path import base_path
4+ from django_petra .path import base_path
55
66def inline_css (html_code ):
77 # Parse the HTML code
Original file line number Diff line number Diff line change 11from django .core .mail import EmailMultiAlternatives
22from django .template .loader import render_to_string
33from email .mime .image import MIMEImage
4- from drf_friend .mailer .inline_css import inline_css
4+ from django_petra .mailer .inline_css import inline_css
55
66class SendMail :
77 """
Original file line number Diff line number Diff line change 1- from drf_friend .project .tasks import drf_mail
1+ from django_petra .project .tasks import petra_mail
22
33class SendMailQueue :
44 def __init__ (self ):
@@ -46,4 +46,4 @@ def send(self):
4646 Returns:
4747 None
4848 """
49- drf_mail .apply_async (args = [self .email ], countdown = self .email ["delay" ])
49+ petra_mail .apply_async (args = [self .email ], countdown = self .email ["delay" ])
Original file line number Diff line number Diff line change 11from celery import shared_task
2- from drf_friend .mailer .send_mail import SendMail
2+ from django_petra .mailer .send_mail import SendMail
33
44@shared_task ()
5- def drf_mail (email_data ):
5+ def petra_mail (email_data ):
66 mail = SendMail ()
77 mail .from_email (email_data ['from' ])
88 mail .to (email_data ['to' ])
You can’t perform that action at this time.
0 commit comments