def set_body(self, body):
if six.PY3:<EOL><INDENT>body = body.encode('<STR_LIT:utf-8>')<EOL><DEDENT>self.encoded = True<EOL>self.body = base64.b64encode(body).decode('<STR_LIT:ascii>')<EOL>
Set the `body` field of this record.

        This will automatically base64-encode the message contents to
        circumvent a limitation in earlier versions of Django in which
        no fields existed for storing arbitrary bytes.