Hi,
Unless you have applied ordering, either in model Meta, or in your query
clause, results are really "in no particular order". Most of the
databases do return results in order the data is read from the disk, but
that's not quaranteed.
If you require ordering, add .order_by() to your query
Hi,
if you don't specifically ask for the query results to be sorted, their order
will be undefined. Differences in your Django version or the RDBMS version or
the OS or the environment or anything may result in a different sort order. If
you want the query to be sorted, you must either use the or
Hi,
As part of migration to Django 1.10.4 from 1.7, I have noticed that
queryset results are unsorted, compared to previous version.
Has same behaviour been observed by anyone?
Regards,
Priyanka
--
You received this message because you are subscribed to the Google Groups
"Django users" grou
3 matches
Mail list logo