You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
319 B
11 lines
319 B
from django.core.management.base import BaseCommand
|
|
from email.mime.image import MIMEImage
|
|
|
|
from apps.notification.utils import send_email
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = 'Send certificates at the end of subscription'
|
|
|
|
def handle(self, *args, **options):
|
|
image = MIMEImage(cms.image.open().read())
|
|
|