[1.8.x] Fixed isort import that's inconsistent between platforms.
[1.8.x] Fixed isort import that's inconsistent between platforms.

Backport of c8e24bbc9b027a712b54e3665d27418ae538f15d from master

pquentin/django,h4r5h1t/django-hauthy,h4r5h1t/django-hauthy,pquentin/django,h4r5h1t/django-hauthy,pquentin/django,h4r5h1t/django-hauthy