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