-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
c0d0b2a
commit 72cc1c6
Showing
3 changed files
with
6 additions
and
0 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
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
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,11 +1,14 @@ | ||
from django.apps import AppConfig | ||
|
||
from utils.allauth_pwreset_nospam import mock_send_unknown_account_email | ||
|
||
|
||
class UtilsConfig(AppConfig): | ||
name = "utils" | ||
|
||
def ready(self): | ||
"""Do stuff after apps are loaded.""" | ||
# monkeypatch password reset form | ||
from allauth.account.forms import ResetPasswordForm | ||
|
||
ResetPasswordForm._send_unknown_account_mail = mock_send_unknown_account_email |