From 073dc542ffb25770f46e764ccc144712f85d3143 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 24 Jul 2019 18:34:56 +0200 Subject: [PATCH] Fix a bug caused by a change in Django 2.2 --- neluser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neluser/views.py b/neluser/views.py index 75068b2..52a91ec 100644 --- a/neluser/views.py +++ b/neluser/views.py @@ -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',