code: def view(self, request, application, label, roles, actions):
          
          if application.content_type.model == 'applicant':
              if not application.applicant.email_verified:
                  application.applicant.email_verified = True
                  application.applicant.save()
          for action in actions:
              if action in request.POST:
                  return action
          link, is_secret = base.get_email_link(application)
          return render(
              template_name='kgapplications/project_aed_introduction.html',
              context={
                  'actions': actions,
                  'application': application, 'roles': roles,
                  'link': link, 'is_secret': is_secret,
              },
              request=request)
docs: Django get_next_action method.