joashivanmoodley / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pagination changes the order of my results #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The pagination changes the order if the items from my object_list. I sent a
list with contains a set of movies whom has to be displayed to the user in
a particular order but pagination changed the order (i cannot figure out if
it did an order on a particular property)

Has anyone noticed that? Is there a workaround? I cannot figure out from
the code what can change the order of my items...

Thank you very much!

Regards,
Dorian

Original issue reported on code.google.com by crapuf...@gmail.com on 27 Jan 2009 at 3:49

GoogleCodeExporter commented 8 years ago
I understood why:
Django built in Pagination object is slice-ing a django.db.models.query.QuerySet
object; in the moment of slicing it seems that everything messes up...

Any idea if there is any work around?

Thanks!

Original comment by crapuf...@gmail.com on 2 Feb 2009 at 3:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You can try this? 
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#dictsort

Original comment by Auston.B...@gmail.com on 1 Aug 2009 at 3:59