summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/hybrid.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-03-21 17:11:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-03-21 17:35:12 -0400
commit711d29f8e4dc096f5083c075a1f64eb38e2d2e4a (patch)
treefe28b0e8f708dc6605ac19062594ff831fb95651 /lib/sqlalchemy/ext/hybrid.py
parentcaeb274e287f514a50524fc9fe4aeedcb3740147 (diff)
downloadsqlalchemy-711d29f8e4dc096f5083c075a1f64eb38e2d2e4a.tar.gz
Raise on flag_modified() for non-present attribute
The :func:`.attributes.flag_modified` function now raises :class:`.InvalidRequestError` if the named attribute key is not present within the object, as this is assumed to be present in the flush process. To mark an object "dirty" for a flush without referring to any specific attribute, the :func:`.attributes.flag_dirty` function may be used. Change-Id: I6c64e4d253c239e38632f38c27bb16e68fe8dfbe Fixes: #3753
Diffstat (limited to 'lib/sqlalchemy/ext/hybrid.py')
0 files changed, 0 insertions, 0 deletions