def render(self, form=None, **kwargs):
        if self.steps.current == 'token':
            self.get_device().generate_challenge()
        return super(LoginView, self).render(form, **kwargs)
If the user selected a device, ask the device to generate a challenge;
dataset/ETHPy150Open Bouke/django-two-factor-auth/two_factor/views/core.py/LoginView.render