Cannot reset a relationship with a secondary table and uselist=False

Issue #2710 resolved
rgg created an issue

I have an ORM class (in this example we'll call it A) which has a relationship with itself using a secondary table. One of the sides of the relationship is multiple and the other one is single, indicated using uselist=False.

If I use the multiple relationship to update the values, all is well, but if I use the single one to reset the value of a previously existent relationship, it fails.

The real model is far more complex than the simple example exposed here; for instance, the relationship must be in a separated secondary table.

Tested on PostgreSQL and SQLite.

Attached is a test case which exercises the bug.

Regards,

Raul Garcia.

Comments (3)

  1. Log in to comment