-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
Its seems there was a major change between 1.x and 2.x versions.
In the code I have written, based on 1.x, there are various class-based login views, for example:
from authtools import views as authviews
class PasswordChangeView(authviews.PasswordChangeView):
form_class = forms.PasswordChangeForm
template_name = 'accounts/password-change.html'
success_url = reverse_lazy('home')
def form_valid(self, form):
form.save()
messages.success(self.request,
"Your password was changed, "
"hence you have been logged out. Please relogin")
return super(PasswordChangeView, self).form_valid(form)
However, 2.x has removed the views module altogether.
What is required to migrate my code?
Metadata
Metadata
Assignees
Labels
No labels