Infinite recursion when appending to a many-to-many dynamic relation

Issue #872 resolved
Former user created an issue

When I try to append to a many-to-many lazy=dynamic relation, I get an infinite recursion exception. I'm not going to include the traceback because it's big and would stretch the page, but I'm attaching a script that demonstrates the issue.

Comments (6)

  1. Mike Bayer repo owner

    its the backref being "dynamic" as well. as a workaround for now you can remove "dynamic" from one side, but also you have to do sometihng with that "foo_id" column you have on the "bars" table (either stick something on it, like a relation(), or remove the column).

  2. Former user Account Deleted

    but also you have to do sometihng with that "foo_id" column you have on the "bars" table (either stick something on it, like a relation(), or remove the column).

    Whoops, sorry about that. That was left over from trying to figure out whether the bug was occurring on many-to-one relations as well.

  3. Log in to comment