Fix a bug caused by a change in Django 2.2
This commit is contained in:
parent
5e4d0ce64a
commit
073dc542ff
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ def send_activation_email(request, user):
|
|||
'email': user.email,
|
||||
'domain': current_site.domain,
|
||||
'site_name': current_site.name,
|
||||
'uid': urlsafe_base64_encode(force_bytes(user.pk)).decode(),
|
||||
'uid': urlsafe_base64_encode(force_bytes(user.pk)),
|
||||
'user': user,
|
||||
'token': default_token_generator.make_token(user),
|
||||
'protocol': 'https' if request.is_secure() else 'http',
|
||||
|
|
Loading…
Reference in a new issue