Skip to content

Commit

Permalink
Fix RemovedInDjango40Warning from Signal arguments
Browse files Browse the repository at this point in the history
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"])"""
  • Loading branch information
TomasLoow committed Dec 3, 2020
1 parent 390a6c9 commit eb22ca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/django_registration/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@


# A new user has registered.
user_registered = Signal(providing_args=["user", "request"])
# Provided args: user, request
user_registered = Signal()

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

0 comments on commit eb22ca9

Please sign in to comment.