(commcare_user)
Turns demo mode OFF for commcare_user and deletes existing demo restore
Turns demo mode OFF for commcare_user and deletes existing demo restore
Turns demo mode OFF for commcare_user and deletes existing demo restore
def turn_off_demo_mode(commcare_user):
    """
    Turns demo mode OFF for commcare_user and deletes existing demo restore
    """

    delete_demo_restore_for_user(commcare_user)
    commcare_user.demo_restore_id = None
    commcare_user.is_demo_user = False
    commcare_user.save()
def turn_off_demo_mode ( commcare_user ) : delete_demo_restore_for_user ( commcare_user ) commcare_user . demo_restore_id = None commcare_user . is_demo_user = False commcare_user . save ( )