Re: ORM Bug from extending the `Query` class

2024-10-16 Thread Sam Brown
This won’t solve your problem but tangentially I’ve made a custom field lookup for `relatedfield__neq=objectToExclude` See: https://docs.djangoproject.com/en/5.1/howto/custom-lookups/ On Tue, Oct 15, 2024 at 3:59 PM Ben Pearman wrote: > Hi all, > > We wrote some custom logic that extended the `

ORM Bug from extending the `Query` class

2024-10-15 Thread Ben Pearman
Hi all, We wrote some custom logic that extended the `Query` class. It worked fine in 3.2 but not for 4.1, and it started producing invalid SQL. We filed a ticket (https://code.djangoproject.com/ticket/35836) but haven't made any progress since `Query` is an undocumented API. Our use case is a