Re: select_for_update + select_related issue

2020-09-26 Thread Simon Charette
I don't think your issue has anything to do with proxy models. You'll get the exact same error if your use Parent.objects instead of Child.objects as both will generate the same SQL: SELECT * FROM parent LEFT JOIN foreign ON parent.foreign_id = foreign.id FOR UPDATE OF parent In this case "pare

select_for_update + select_related issue

2020-09-23 Thread 'Dmitrii Ivaniushin' via Django users
Hello. I just wanted to know, whether I run into a bug, and whether I should report it. Normally select_for_update and select_related try to lock all affected rows in all tables. One can specify "of" for select_for_update to limit tables to lock (to prevent locking nullable relations). Recentl