errant many-to-many load in unit of work

Issue #1845 resolved
Mike Bayer repo owner created an issue

line 867 of dependency.py:

    def presort_saves(self, uowcommit, states):
        for state in states:
            history = uowcommit.get_attribute_history(
                                    state, 
                                    self.key, 
                                    False)

        if not self.cascade.delete_orphan:
            return

        for state in states:
            history = uowcommit.get_attribute_history(
                                        state, 
                                        self.key, 
                                        passive=True)

unfortunately at least one test seems to be relying upon this.

Comments (2)

  1. Log in to comment