Re: Django pagination is repeating results

2011-02-24 Thread diogobaeder
Nevermind, it is a SQL Server problem. (I hate SQL Server. There, I
said it.)

I had to first filter manually by the m2m objects, then apply the
pagination to the results.

Thanks!

On Feb 18, 2:53 pm, David De La Harpe Golden
 wrote:
> On 18/02/11 17:38,diogobaederwrote:
>
> > Hi,
> > Any ideas of what might be happening?
>
> Have you set a Meta.ordering on your Model (or applied an .order_by()
> to the QuerySet?)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django pagination is repeating results

2011-02-18 Thread David De La Harpe Golden
On 18/02/11 17:38, diogobaeder wrote:
> Hi,

> Any ideas of what might be happening?
> 

Have you set a Meta.ordering on your Model (or applied an .order_by()
to the QuerySet?)


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django pagination is repeating results

2011-02-18 Thread diogobaeder
Hi,

I have this weird pagination bug in Django: using object_list as a
return of a view, but passing a "paginate_by" argument to it, it's
repeating some of the results; Otherwise, if I remove the argument or
set as "paginate_by=None", the results are correct.

If using pagination, the quantity of results is maintained at a total,
so, because there are repeated results, the last results are left out
of the list, so they don't appear in the template.

Any ideas of what might be happening?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.