python-django-mailman3/dj40.patch

44 lines
1.4 KiB
Diff

commit 6cfc4c87bc445592a1a020ee877bd8fead3d8e39
Author: John Vandenberg <jayvdb@gmail.com>
Date: Mon Dec 27 06:33:03 2021 +0800
signals.py: Fix Django 4.0 breakage
diff --git a/django_mailman3/signals.py b/django_mailman3/signals.py
index 54306eb..20f1b11 100644
--- a/django_mailman3/signals.py
+++ b/django_mailman3/signals.py
@@ -51,13 +51,13 @@ FIELD_LAST_NAME = 'last_name'
#
# Defined signals
#
-domain_created = Signal(providing_args=["mail_host"])
-domain_deleted = Signal(providing_args=["mail_host"])
-mailinglist_created = Signal(providing_args=["list_id"])
-mailinglist_modified = Signal(providing_args=["list_id"])
-mailinglist_deleted = Signal(providing_args=["list_id", "delete_archives"])
-user_subscribed = Signal(providing_args=["list_id", "user_email", "role"])
-user_unsubscribed = Signal(providing_args=["list_id", "user_email", "role"])
+domain_created = Signal()
+domain_deleted = Signal()
+mailinglist_created = Signal()
+mailinglist_modified = Signal()
+mailinglist_deleted = Signal()
+user_subscribed = Signal()
+user_unsubscribed = Signal()
#
# Signals listened to
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@
packages=find_packages(),
include_package_data=True,
install_requires=[
- 'django>=2.2,<3.3',
+ 'django>=2.2,<4.1',
'mailmanclient>=3.3.3',
'django-allauth',
'django-gravatar2 >= 1.0.6',