def is_form_submitted():
    """
        Check if current method is PUT or POST
    """
    return request and request.method in ('PUT', 'POST')
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/helpers.py/is_form_submitted/original