def _safe_resolve_url(url):
    return six.text_type(resolve_url(url))
Previously, resolve_url_lazy would fail if the url was a unicode object.
dataset/ETHPy150Open fusionbox/django-authtools/authtools/views.py/_safe_resolve_url