Clean up session sharing

* Test cases
* Fix premature session.close when caller
  is managing email backend connection
* Ensure session closed correct in exceptions
* Changelog

(Also fixes bug where JSON serialization errors
didn't respect fail_silently.)
This commit is contained in:
medmunds
2015-11-30 16:19:28 -08:00
parent 4089a35500
commit 3a6e0ebb30
4 changed files with 132 additions and 31 deletions

View File

@@ -68,6 +68,15 @@ Removed DjrillBackendHTTPError
with :exc:`djrill.MandrillAPIError`.
Other Djrill 2.0 Changes
~~~~~~~~~~~~~~~~~~~~~~~~
* Use a single HTTP connection to the Mandrill API to improve performance
when sending multiple messages at once using :func:`~django.core.mail.send_mass_mail`.
(You can also directly manage your own long-lived Djrill connection across multiple sends,
by calling open and close on :ref:`Django's email backend <django:topic-email-backends>`.)
Older Releases
--------------