Hallo there. i have problem with my order_by when using paginator. the data
are not sort well. data becomes random.
when i do
qs = Messages.objects.filter(
main_msg=get_message).order_by('datetime')
the data are sort well by order_by.
but when i'm using paginator = Paginator(
I was fixed it by change order_by('id') to .order_by('-id') then
adding reversed in {% for i in objects reversed %}
i wonder if there is another solution to fix this problem.
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
2 matches
Mail list logo