wagtail-2fa icon indicating copy to clipboard operation
wagtail-2fa copied to clipboard

Package installation issue with Wagtail version 4.0.1

Open Karelkami opened this issue 2 years ago • 0 comments

When I tried to install the package in a fresh install I got an error message related to django.contrib.auth.views.SuccessURLAllowedHostsMixin. In the latest version of Django this has been replaced by RedirectURLMixin. So I modified the views file of the package to make it work.

On line 5. I replaced the old code with: from django.contrib.auth.views import RedirectURLMixin

At line 23.

I replaced the old code with :

class LoginView(RedirectURLMixin, FormView):

So ! And it works very well.

Karelkami avatar Sep 19 '22 21:09 Karelkami