django-sendgrid-v5
django-sendgrid-v5 copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'providing_args'
If you are getting this error, it is because Django 4 seems to have removed this argument.
Changing the line on /sendgrid_backend/signals.py
from: sendgrid_email_sent = django.dispatch.Signal(providing_args=["message", "fail_flag"])
to: sendgrid_email_sent = django.dispatch.Signal()
fixes the problem for me.
My Environment: Python3 version: 3.8.10 Django version: 4.1.8
Thanks for reporting the issue! Do you mind making a PR to fix this? With a feature flag for the Django version?
I must have been using an old version because I see it's already done in master long time ago. However, I had installed it using pip install django-sendgrid-v5 could that be still old somehow?
Looks like version 1.2.3 is released to PyPi and should have all relevant commits from master
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.