wagtail-2fa
wagtail-2fa copied to clipboard
Package installation issue with Wagtail version 4.0.1
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.