Fix a bug caused by a change in Django 2.2

This commit is contained in:
Rodolphe Breard 2019-07-24 18:34:56 +02:00
parent 5e4d0ce64a
commit 073dc542ff

View file

@ -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',