-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(signals): Remove Django 4.0 deprecation warning
- Loading branch information
Showing
2 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
from django.contrib.auth.signals import user_logged_out # noqa | ||
from django.dispatch import Signal | ||
|
||
|
||
user_logged_in = Signal(providing_args=["request", "user"]) | ||
# Provides the arguments "request", "user" | ||
user_logged_in = Signal() | ||
|
||
# Typically followed by `user_logged_in` (unless, e-mail verification kicks in) | ||
user_signed_up = Signal(providing_args=["request", "user"]) | ||
# Provides the arguments "request", "user" | ||
user_signed_up = Signal() | ||
|
||
password_set = Signal(providing_args=["request", "user"]) | ||
password_changed = Signal(providing_args=["request", "user"]) | ||
password_reset = Signal(providing_args=["request", "user"]) | ||
# Provides the arguments "request", "user" | ||
password_set = Signal() | ||
# Provides the arguments "request", "user" | ||
password_changed = Signal() | ||
# Provides the arguments "request", "user" | ||
password_reset = Signal() | ||
|
||
email_confirmed = Signal(providing_args=["request", "email_address"]) | ||
email_confirmation_sent = Signal( | ||
providing_args=["request", "confirmation", "signup"]) | ||
# Provides the arguments "request", "email_address" | ||
email_confirmed = Signal() | ||
# Provides the arguments "request", "confirmation", "signup" | ||
email_confirmation_sent = Signal() | ||
|
||
email_changed = Signal( | ||
providing_args=[ | ||
"request", "user", | ||
"from_email_address", "to_email_address"]) | ||
email_added = Signal(providing_args=["request", "user", "email_address"]) | ||
email_removed = Signal(providing_args=["request", "user", "email_address"]) | ||
# Provides the arguments "request", "user", "from_email_address", | ||
# "to_email_address" | ||
email_changed = Signal() | ||
# Provides the arguments "request", "user", "email_address" | ||
email_added = Signal() | ||
# Provides the arguments "request", "user", "email_address" | ||
email_removed = Signal() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters