(form_json)
Whether the form is submitted by demo_user
Whether the form is submitted by demo_user
Whether the form is submitted by demo_user
def from_demo_user(form_json):
    """
    Whether the form is submitted by demo_user
    """
    from corehq.apps.users.util import DEMO_USER_ID
    try:
        # require new-style meta/userID (reject Meta/chw_id)
        if form_json['meta']['userID'] == DEMO_USER_ID:
            return True
    except (KeyError, ValueError):
        return False
def from_demo_user ( form_json ) : from corehq . apps . users . util import DEMO_USER_ID try : # require new-style meta/userID (reject Meta/chw_id) if form_json [ 'meta' ] [ 'userID' ] == DEMO_USER_ID : return True except ( KeyError , ValueError ) : return False