Ticket #19107: 19107-django-1.6.5.patch

File 19107-django-1.6.5.patch, 550 bytes (added by Ben Kornrath, 10 years ago)

Patch to fix this issue on Django 1.6.5.

  • django/core/mail/message.py

    diff --git a/django/core/mail/message.py b/django/core/mail/message.py
    index 95762ff..5bcb588 100644
    a b class MIMEMixin():  
    132132        """
    133133        fp = six.StringIO()
    134134        g = generator.Generator(fp, mangle_from_=False)
     135        if sys.version_info < (2, 6, 6) and isinstance(self._payload, six.text_type):
     136            self._payload = self._payload.encode(self._charset.output_charset)
    135137        g.flatten(self, unixfrom=unixfrom)
    136138        return fp.getvalue()
    137139
Back to Top