Skip to content

Commit

Permalink
Merge pull request #7 from inspirehep/apply-inspire-changes
Browse files Browse the repository at this point in the history
apply inspire changes from 8a9b357
  • Loading branch information
MJedr authored Jul 12, 2023
2 parents e89a11d + e3c6c7a commit 021b598
Showing 1 changed file with 2 additions and 0 deletions.
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)

0 comments on commit 021b598

Please sign in to comment.