mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 00:04:50 +02:00
fixes of python 3 test fails
This commit is contained in:
@ -21,7 +21,6 @@ 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):
|
||||
"""
|
||||
@ -119,7 +118,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
"subject": t.subject,
|
||||
}).render(context)
|
||||
|
||||
if isinstance(recipients, text):
|
||||
if isinstance(recipients, str):
|
||||
if recipients.find(','):
|
||||
recipients = recipients.split(',')
|
||||
elif type(recipients) != list:
|
||||
|
Reference in New Issue
Block a user