def get_non_job_argslist(details_form):
    """
    Gets a list of all fields returned with the Job options forms that
    shouldn't be included in the job args list put in the database.

    Args:
        details_form (WTForm): the JobDetails form (a form that is
                               used as a base for most other job
                               options forms)

    Returns:
        list: list of arguments to remove from the job_args list
    """
    details_list = ['csrf_token', 'start_job']
    for fieldname, value in details_form.data.items():
        details_list.append(fieldname)
    return details_list