Re: Limiting SQL queries in a custom manager method

2007-05-20 Thread Olivier Guilyardi
Jeremy Dunck wrote: > On 5/18/07, Olivier Guilyardi <[EMAIL PROTECTED]> wrote: > ... >> Okay, so I suppose a workaround is to pass offset and length as arguments to >> my_query() >> > ... >> I suppose I may also try to extend the QuerySet class to add my own method. >> But >> this might get rathe

Re: Limiting SQL queries in a custom manager method

2007-05-18 Thread Jeremy Dunck
On 5/18/07, Olivier Guilyardi <[EMAIL PROTECTED]> wrote: ... > Okay, so I suppose a workaround is to pass offset and length as arguments to > my_query() > ... > I suppose I may also try to extend the QuerySet class to add my own method. > But > this might get rather complex AFAICS in db.models.qu

Re: Limiting SQL queries in a custom manager method

2007-05-18 Thread Olivier Guilyardi
Malcolm Tredinnick wrote: > On Fri, 2007-05-18 at 23:50 +0200, Olivier Guilyardi wrote: >> >> How can I know about the limiting parameters inside a custom manager method? >> >> Example: >> >> class MyManager(models.Manager): >> def my_query(self): >> # How can I find out about offset a

Re: Limiting SQL queries in a custom manager method

2007-05-18 Thread Malcolm Tredinnick
On Fri, 2007-05-18 at 23:50 +0200, Olivier Guilyardi wrote: > Hi, > > How can I know about the limiting parameters inside a custom manager method? > > Example: > > class MyManager(models.Manager): > def my_query(self): > # How can I find out about offset and length ? > curso