Ticket #7655: 7655.patch

File 7655.patch, 570 bytes (added by guettli, 7 years ago)
  • django/core/mail.py

     
    205205        conversions.
    206206        """
    207207        if to:
     208            assert not isinstance(to, basestring), 'must be a list or tuple'
    208209            self.to = list(to)
    209210        else:
    210211            self.to = []
    211212        if bcc:
     213            assert not isinstance(bcc, basestring), 'must be a list or tuple'
    212214            self.bcc = list(bcc)
    213215        else:
    214216            self.bcc = []
Back to Top