mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Brevo: SendinBlue compatibility
(See previous commit.) - Maintain deprecated compatibility versions on the old names/URLs. (Split into separate commit to make renamed files more obvious.)
This commit is contained in:
20
anymail/backends/sendinblue.py
Normal file
20
anymail/backends/sendinblue.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import warnings
|
||||
|
||||
from ..exceptions import AnymailDeprecationWarning
|
||||
from .brevo import EmailBackend as BrevoEmailBackend
|
||||
|
||||
|
||||
class EmailBackend(BrevoEmailBackend):
|
||||
"""
|
||||
Deprecated compatibility backend for old Brevo name "SendinBlue".
|
||||
"""
|
||||
|
||||
esp_name = "SendinBlue"
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
warnings.warn(
|
||||
"`anymail.backends.sendinblue.EmailBackend` has been renamed"
|
||||
" `anymail.backends.brevo.EmailBackend`.",
|
||||
AnymailDeprecationWarning,
|
||||
)
|
||||
super().__init__(**kwargs)
|
||||
Reference in New Issue
Block a user