Skip to content

Commit

Permalink
Merge c72f08d into e38affc
Browse files Browse the repository at this point in the history
  • Loading branch information
jproffitt committed Oct 8, 2018
2 parents e38affc + c72f08d commit d567d1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
@@ -1,3 +1,7 @@
=== 0.2.1 (unreleased) ===
- Fix bug that could occur sometimes in herald.contrib.auth when reversing the password reset url


=== 0.2 (08-16-2018) ===
- Drop official support for django < 1.11 and python 3.2-3.3
- Changed Notification.notification_class and Notification.verbose_name fields to have less restrictive `max_length`
Expand Down
2 changes: 1 addition & 1 deletion herald/__init__.py
@@ -1,7 +1,7 @@
"""
Notification classes. Used for sending texts and emails
"""
__version__ = '0.2'
__version__ = '0.2.1b1'

default_app_config = 'herald.apps.HeraldConfig'

Expand Down
4 changes: 2 additions & 2 deletions herald/contrib/auth/notifications.py
Expand Up @@ -6,7 +6,7 @@
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.models import Site
from django.template import loader
from django.utils.encoding import force_bytes
from django.utils.encoding import force_bytes, force_text
from django.utils.http import urlsafe_base64_encode
from django.urls import reverse

Expand Down Expand Up @@ -45,7 +45,7 @@ def get_context_data(self):
self.domain = current_site.domain

protocol = 'https' if self.use_https else 'http'
uid = urlsafe_base64_encode(force_bytes(self.user.pk))
uid = force_text(urlsafe_base64_encode(force_bytes(self.user.pk)))
token = self.token_generator.make_token(self.user)

context.update({
Expand Down

0 comments on commit d567d1f

Please sign in to comment.