mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
Change PasswordResetForm.save() to accept HttpRequest, not WSGIRequest. (#679)
This commit is contained in:
@@ -6,6 +6,7 @@ from django.contrib.auth.models import User
|
|||||||
from django.contrib.auth.tokens import PasswordResetTokenGenerator
|
from django.contrib.auth.tokens import PasswordResetTokenGenerator
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
from django.core.handlers.wsgi import WSGIRequest
|
||||||
|
from django.http.request import HttpRequest
|
||||||
|
|
||||||
UserModel: Any
|
UserModel: Any
|
||||||
|
|
||||||
@@ -61,7 +62,7 @@ class PasswordResetForm(forms.Form):
|
|||||||
use_https: bool = ...,
|
use_https: bool = ...,
|
||||||
token_generator: PasswordResetTokenGenerator = ...,
|
token_generator: PasswordResetTokenGenerator = ...,
|
||||||
from_email: Optional[str] = ...,
|
from_email: Optional[str] = ...,
|
||||||
request: Optional[WSGIRequest] = ...,
|
request: Optional[HttpRequest] = ...,
|
||||||
html_email_template_name: Optional[str] = ...,
|
html_email_template_name: Optional[str] = ...,
|
||||||
extra_email_context: Optional[Dict[str, str]] = ...,
|
extra_email_context: Optional[Dict[str, str]] = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user