Re: Please find it in your hearts to expose filter_or_exclude at a global level.

2011-04-11 Thread sh...@bogomip.com
thout understanding how it is made available in the first place. - Shane On Apr 11, 11:04 am, Jacob Kaplan-Moss wrote: > On Mon, Apr 11, 2011 at 11:23 AM, sh...@bogomip.com > wrote: > > IMHO (which is very H) _filter_or_exclude should be public.  I can't > > find a compel

Please find it in your hearts to expose filter_or_exclude at a global level.

2011-04-11 Thread sh...@bogomip.com
I often have to filter or exclude based on a search boolean. Writing duplicate code for both queries or selecting which of the two functions using my own function feels horribly repetitive since a function doing exactly that exists in the base model query manager. IMHO (which is very H) _filter_o

Re: New ManyToManyField Approach

2010-11-23 Thread sh...@bogomip.com
On Nov 23, 6:42 pm, Christophe Pettus wrote: > On Nov 23, 2010, at 5:40 PM, sh...@bogomip.com wrote: > > > Without test data I'm not sure where the trade offs are with the > > following.  However it should improve the ability to look up items > > that reference a c

New ManyToManyField Approach

2010-11-23 Thread sh...@bogomip.com
I've recently started using the following approach when attempting to reduce the size of ManyToManyField type reference tables. Currently I'm working on implementing this in a limited fashion into my own work. I would like to share what I'm working on with you all and see if it's worth a reaction