Skip to content

Commit

Permalink
Merge pull request #87 from anexia/django42
Browse files Browse the repository at this point in the history
Add Django 4.2 support
  • Loading branch information
vrocha authored Nov 21, 2023
2 parents ca53020 + ce2e6ea commit 218f51d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion password_reset/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.auth import get_user_model
from django.core.validators import validate_email
from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.conf import settings


Expand Down
5 changes: 2 additions & 3 deletions password_reset/signals.py
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()
10 changes: 5 additions & 5 deletions password_reset/urls.py
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'),
]

0 comments on commit 218f51d

Please # to comment.