Django 1.7 compatibility
Created originally on Bitbucket by Anonymous
(Imported from Google Code)
bikeshedder wrote:
These is a problem in passlib/ext/django/utils.py L189:
Importing _ and SortedDict from django.contrib.auth.hashers is not a good idea as it is implementation specific and breaks with Django 1.7 which no longer imports SortedDict. By directly importing those from django.utils.translation and django.utils.datastructures the code works and should be backwards compatible with all Django versions currently targeted by passlib.
I created a pull request on bitbucket for that:
https://bitbucket.org/ecollins/passlib/pull-request/1/fix-django-17-compatibility/diff