mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Fix global SEND_DEFAULTS merging
Replace generic `combine` with specific `merge_dicts_deep`, `merge_dicts_shallow`, `merge_dicts_one_level` or `concat_lists`, depending on appropriate behavior for each message attribute. Fixes merging global `SEND_DEFAULTS` with message `esp_extra` for ESP APIs that use nested payload structures. And clarifies intent for other properties.
This commit is contained in:
@@ -30,6 +30,14 @@ vNext
|
||||
|
||||
*unreleased changes*
|
||||
|
||||
Fixes
|
||||
~~~~~
|
||||
|
||||
* Correctly merge global ``SEND_DEFAULTS`` with message ``esp_extra``
|
||||
for ESP APIs that use a nested structure (including Mandrill and SparkPost).
|
||||
Clarify intent of global defaults merging code for other message properties.
|
||||
(Thanks to `@mounirmesselmeni`_ for reporting the issue.)
|
||||
|
||||
Other
|
||||
~~~~~
|
||||
|
||||
@@ -1571,6 +1579,7 @@ Features
|
||||
.. _@mark-mishyn: https://github.com/mark-mishyn
|
||||
.. _@martinezleoml: https://github.com/martinezleoml
|
||||
.. _@mbk-ok: https://github.com/mbk-ok
|
||||
.. _@mounirmesselmeni: https://github.com/mounirmesselmeni
|
||||
.. _@mwheels: https://github.com/mwheels
|
||||
.. _@nuschk: https://github.com/nuschk
|
||||
.. _@puru02: https://github.com/puru02
|
||||
|
||||
Reference in New Issue
Block a user