Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply inspire changes from 8a9b357 #7

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sqlalchemy_continuum/unit_of_work.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from copy import copy

import sqlalchemy as sa
from sqlalchemy.orm.attributes import flag_modified
from sqlalchemy_utils import get_primary_keys, identity
from .operation import Operations
from .utils import (
Expand Down Expand Up @@ -339,3 +340,4 @@ def assign_attributes(self, parent_obj, version_obj):
except sa.orm.exc.ObjectDeletedError:
value = None
setattr(version_obj, prop.key, value)
flag_modified(version_obj, prop.key)