'Mark that the user data in this attempt is correct. In order to
succeed, the user must have uploaded the necessary images
(`face_image_url`, `photo_id_image_url`). This method will also copy
their name from their user profile. Prior to marking it ready, we read
this value directly from their profile, since they\'re free to change it.
This often happens because people put in less formal versions of their
name on signup, but realize they want something different to go on a
formal document.
Valid attempt statuses when calling this method:
`created`
Status after method completes: `ready`
Other fields that will be set by this method:
`name`
State Transitions:
`created` â `ready`
This is what happens when the user confirms to us that the pictures
they uploaded are good. Note that we don\'t actually do a submission
anywhere yet.'

@status_before_must_be('created')
def mark_ready(self):

    self.name = self.user.profile.name
    self.status = 'ready'
    self.save()
