(self, form_list, **kwargs)
return redirect(reverse(TwoFactorProfileView.urlname))
Store the device and reload the page.
Store the device and reload the page.
Store the device and reload the page .
def done(self, form_list, **kwargs):
        """
        Store the device and reload the page.
        """
        self.get_device(user=self.request.user, name='backup').save()
        messages.add_message(self.request, messages.SUCCESS, _("Phone number added."))
        return redirect(reverse(TwoFactorProfileView.urlname))
def done ( self , form_list , * * kwargs ) : self . get_device ( user = self . request . user , name = 'backup' ) . save ( ) messages . add_message ( self . request , messages . SUCCESS , _ ( "Phone number added." ) ) return redirect ( reverse ( TwoFactorProfileView . urlname ) )