fixes of python 3 test fails

This commit is contained in:
Alex Seeholzer
2015-11-18 15:07:33 +01:00
parent 71504aa85d
commit 8390125c01
3 changed files with 6 additions and 6 deletions

View File

@ -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: