- attached saerror.py
Cannot reset a relationship with a secondary table and uselist=False
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)
-
reporter -
repo owner this is an 0.8-only regression introduced by
#2229. fixed in 3a536ad1bad3efc272ade2914b3418844fe46b57, I corrected the changelog to reflect a regression in b5ab6d4107a7204fae2c4887c0c05c447a38a5db. -
repo owner - removed milestone
Removing milestone: 0.8.xx (automated comment)
- Log in to comment
Test case which exercises the bug