#37345 new Cleanup/optimization

Add mailer shorthand for mailers[DEFAULT_MAILER_ALIAS]

Reported by: Johannes Maron Owned by:
Component: Core (Mail) Version: 6.1
Severity: Normal Keywords:
Cc: Johannes Maron Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Howdy,

The new mailers interfaces is lacking a django.db.connection equivalent.
A django.mail.mailer shorthand for mailers[DEFAULT_MAILER_ALIAS] would simplify the transition away from get_connection.

I would have complained earlier during development, but I simply missed it. Only that I am migrating a project now, I realize it's inconsistent with django.db or django.cache.

Cheerio
-Joe

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top