Skip to content

Commit eb22ca9

Browse files
committed
Fix RemovedInDjango40Warning from Signal arguments
Fix to removove the following warning I've started to see when running unittest in my django project. """/<path to venv/lib/python3.7/site-packages/django_registration/signals.py:13: RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring. user_activated = Signal(providing_args=["user", "request"])"""
1 parent 390a6c9 commit eb22ca9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/django_registration/signals.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88

99
# A new user has registered.
10-
user_registered = Signal(providing_args=["user", "request"])
10+
# Provided args: user, request
11+
user_registered = Signal()
1112

1213
# A user has activated his or her account.
13-
user_activated = Signal(providing_args=["user", "request"])
14+
# Provided args: user, request
15+
user_activated = Signal()

0 commit comments

Comments
 (0)