-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from anexia/django42
Add Django 4.2 support
- Loading branch information
Showing
3 changed files
with
8 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from django.dispatch import Signal | ||
|
||
# signal sent when users successfully recover their passwords | ||
user_recovers_password = Signal( | ||
providing_args=['user', 'request'] | ||
) | ||
# args=['user', 'request'] | ||
user_recovers_password = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from . import views | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^recover/(?P<signature>.+)/$', views.recover_done, | ||
path('recover/<str:signature>/', views.recover_done, | ||
name='password_reset_sent'), | ||
url(r'^recover/$', views.recover, name='password_reset_recover'), | ||
url(r'^reset/done/$', views.reset_done, name='password_reset_done'), | ||
url(r'^reset/(?P<token>[\w:-]+)/$', views.reset, | ||
path('recover/', views.recover, name='password_reset_recover'), | ||
path('reset/done/', views.reset_done, name='password_reset_done'), | ||
path('reset/<str:token>/', views.reset, | ||
name='password_reset_reset'), | ||
] |