code: def get_email_link(application):
      
      # don't use secret_token unless we have to
      if (application.content_type.model == 'person'
              and application.applicant.has_usable_password()):
          url = '%s/applications/%d/' % (
              settings.REGISTRATION_BASE_URL, application.pk)
          is_secret = False
      else:
          url = '%s/applications/%s/' % (
              settings.REGISTRATION_BASE_URL, application.secret_token)
          is_secret = True
      return url, is_secret
docs: Retrieve a link that can be emailed to the applicant.