@home.route('/import_related_projects', methods=['GET', 'POST'])
@login_required
def import_related_projects():
    form = ImportEMLForm()
    form.filename.choices = list_data_packages(False, False)
    if (request.method == 'POST'):
        if (BTN_CANCEL in request.form):
            return redirect(get_back_url())
        if form.validate_on_submit():
            filename = form.filename.data
            return redirect(url_for('home.import_related_projects_2', filename=filename))
    help = get_helps(['import_related_projects'])
    return render_template('import_related_projects.html', help=help, form=form)
@home.route('/import_related_projects', methods=['GET', 'POST'])
@login_required
def import_related_projects():
    form = ImportEMLForm()
    form.filename.choices = list_data_packages(False, False)
    if (request.method == 'POST'):
        if (BTN_CANCEL in request.form):
            return redirect(get_back_url())
        if form.validate_on_submit():
            filename = form.filename.data
            return redirect(url_for('home.import_related_projects_2', filename=filename))
    help = get_helps(['import_related_projects'])
    return render_template('import_related_projects.html', help=help, form=form)