The proposal is to return 0 instead of None so that this method always
returns an integer. As far as I can see, other built-in email backends in
Django always return an integer.
PR available: [https://github.com/django/django/pull/10784]
--
Ticket URL: <https://code.djangoproject.com/ticket/30058>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 2.1 => master
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:1>
* needs_better_patch: 0 => 1
Comment:
It's missing a regression test for the `not email_messages` case.
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:2>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:4>
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"277de2298465496b58808d22f67963544c76b16a" 277de229]:
{{{
#!CommitTicketReference repository=""
revision="277de2298465496b58808d22f67963544c76b16a"
Fixed #30058 -- Made SMTP EmailBackend.send_messages() return 0 for
empty/error cases.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30058#comment:6>