anymail / django-anymail

Django email backends and webhooks for Amazon SES, Brevo (Sendinblue), MailerSend, Mailgun, Mailjet, Postmark, Postal, Resend, SendGrid, SparkPost, Unisender Go and more
https://anymail.dev
BSD 3-Clause "New" or "Revised" License
1.67k stars 129 forks source link

RemovedInDjango50Warning: `webhooks/sparkpost.py` #290

Closed jensenbox closed 1 year ago

jensenbox commented 1 year ago

Not a high priority but would be nice to clean up the terminal output:

https://github.com/anymail/django-anymail/blob/7d726734eb09fa1e3f4d3ce37ac1a22a46436e22/anymail/webhooks/sparkpost.py#L5

anymail/webhooks/sparkpost.py:5: RemovedInDjango50Warning: The django.utils.timezone.utc alias is deprecated. Please update your code to use datetime.timezone.utc instead.
    from django.utils.timezone import utc
medmunds commented 1 year ago

This has already been fixed (but not yet released) in a4f50c434063f03e6c516f7fe8c84f095c7b5d8f.