This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# orm/dependency.py
|
||||
# Copyright (C) 2005-2025 the SQLAlchemy authors and contributors
|
||||
# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
|
||||
# <see AUTHORS file>
|
||||
#
|
||||
# This module is part of SQLAlchemy and is released under
|
||||
@@ -7,7 +7,9 @@
|
||||
# mypy: ignore-errors
|
||||
|
||||
|
||||
"""Relationship dependencies."""
|
||||
"""Relationship dependencies.
|
||||
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -165,11 +167,9 @@ class DependencyProcessor:
|
||||
sum_ = state.manager[self.key].impl.get_all_pending(
|
||||
state,
|
||||
state.dict,
|
||||
(
|
||||
self._passive_delete_flag
|
||||
if isdelete
|
||||
else attributes.PASSIVE_NO_INITIALIZE
|
||||
),
|
||||
self._passive_delete_flag
|
||||
if isdelete
|
||||
else attributes.PASSIVE_NO_INITIALIZE,
|
||||
)
|
||||
|
||||
if not sum_:
|
||||
@@ -1052,7 +1052,7 @@ class ManyToManyDP(DependencyProcessor):
|
||||
# so that prop_has_changes() returns True
|
||||
for state in states:
|
||||
if self._pks_changed(uowcommit, state):
|
||||
uowcommit.get_attribute_history(
|
||||
history = uowcommit.get_attribute_history(
|
||||
state, self.key, attributes.PASSIVE_OFF
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user