Djblets 2.2.3 Release Notes¶
Release date: June 28, 2021
build_email_address()on Python 3 to guarantee returning e-mail addresses without encoding for mail headers.
This regressed on Python 3, due to this method previously using
email.utils.formataddr()behind the scenes. E-mail addresses containing Unicode characters were being encoded for use directly in e-mail payloads.
This method is now guaranteed to return an e-mail address with the same behavior as on Python 2.7.
Improved e-mail headers and Unicode support.
Our e-mail header handling now better leverages Django’s own header handling, ensuring that headers with Unicode values or e-mail addresses are always encoded properly.
?expand=to not expand keys in nested objects if they’re found in top-level objects.
Previously, when expanding multiple keys (like
?expand=a,b,c), if one key (
b) was found inside of both
aand in the main resource, it would prefer the one in
aand leave out the one in the main resource. Now, expanded keys in a resource are prioritized over those in an expanded child.