def render_next_step(self, form, **kwargs):
next_step = self.steps.next<EOL>if next_step == '<STR_LIT>':<EOL><INDENT>self.get_device().generate_challenge()<EOL><DEDENT>return super(PhoneSetupView, self).render_next_step(form, **kwargs)<EOL>
In the validation step, ask the device to generate a challenge.