Re: Problem with query set order_by

2009-06-11 Thread Sean Brant
You the man Alex, that was the problem! On Jun 11, 11:19 am, Alex Gaynor wrote: > On Thu, Jun 11, 2009 at 11:15 AM, Tom Evans wrote: > > > > > > > On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > > > If I have 2 sql queries one with a limit of 5 and the other with a > > > limit or 6 they r

Re: Problem with query set order_by

2009-06-11 Thread Alex Gaynor
On Thu, Jun 11, 2009 at 11:15 AM, Tom Evans wrote: > > On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > > If I have 2 sql queries one with a limit of 5 and the other with a > > limit or 6 they return there results in diffrent orders. > > > > Here is a example. > > > > >>> class Book(models.M

Re: Problem with query set order_by

2009-06-11 Thread Tom Evans
On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > If I have 2 sql queries one with a limit of 5 and the other with a > limit or 6 they return there results in diffrent orders. > > Here is a example. > > >>> class Book(models.Model): > >>>title = models.CharField(max_length=150) > >>>

Problem with query set order_by

2009-06-11 Thread Sean Brant
If I have 2 sql queries one with a limit of 5 and the other with a limit or 6 they return there results in diffrent orders. Here is a example. >>> class Book(models.Model): >>>title = models.CharField(max_length=150) >>>author = models.CharField(max_length=100) >>> book_list_1 = Books.o