[1.8.x] Refs #17914 -- Discouraged using reverese() with callables.
[1.8.x] Refs #17914 -- Discouraged using reverese() with callables.

Backport of a6acfc31837fd7a9e0e387320d995b2c85cfcfce from master

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