mirror of https://github.com/zulip/zulip.git
typing: Correct the signautre of prepare_activation_url.
`request.session` is `django.contrib.sessions.backends.base.SessionBase` `instead of django.contrib.sessions.models.Session`. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
2ddea50745
commit
8ba8177dc5
|
@ -5,7 +5,7 @@ from urllib.parse import urlencode
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.auth import authenticate, get_backends
|
from django.contrib.auth import authenticate, get_backends
|
||||||
from django.contrib.sessions.models import Session
|
from django.contrib.sessions.backends.base import SessionBase
|
||||||
from django.core import validators
|
from django.core import validators
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
@ -540,7 +540,7 @@ def login_and_go_to_home(request: HttpRequest, user_profile: UserProfile) -> Htt
|
||||||
|
|
||||||
def prepare_activation_url(
|
def prepare_activation_url(
|
||||||
email: str,
|
email: str,
|
||||||
session: Session,
|
session: SessionBase,
|
||||||
*,
|
*,
|
||||||
realm: Optional[Realm],
|
realm: Optional[Realm],
|
||||||
realm_creation: bool = False,
|
realm_creation: bool = False,
|
||||||
|
|
Loading…
Reference in New Issue