mozilla / django-browserid

Django application for adding BrowserID support.
Mozilla Public License 2.0
179 stars 80 forks source link

force_unicode() is not Django 1.5/Python 3 compatible #185

Closed ubernostrum closed 11 years ago

ubernostrum commented 11 years ago

django_browserid/utils.py imports and uses django.utils.encoding.force_unicode; on Django 1.5 under Python 3 that function doesn't exist. Instead, django.utils.encoding.force_text is the utility function for Python 3. Trying to import force_unicode, catching ImportError and falling back to importing force_text should do the trick.

Osmose commented 11 years ago

Closing as a duplicate of #195 . This is referenced by that issue and will be handled as a part of it. Thanks! :D