forked from extern/django-helpdesk
minor changes for python3
This commit is contained in:
@ -21,6 +21,7 @@ import logging
|
||||
logger = logging.getLogger('helpdesk')
|
||||
|
||||
from django.utils.encoding import smart_str
|
||||
from builtins import str as text
|
||||
|
||||
def send_templated_mail(template_name, email_context, recipients, sender=None, bcc=None, fail_silently=False, files=None):
|
||||
"""
|
||||
@ -118,7 +119,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
"subject": t.subject,
|
||||
}).render(context)
|
||||
|
||||
if isinstance(recipients,(str,unicode)):
|
||||
if isinstance(recipients, text):
|
||||
if recipients.find(','):
|
||||
recipients = recipients.split(',')
|
||||
elif type(recipients) != list:
|
||||
|
Reference in New Issue
Block a user