* ui_ux: => 0
* type: => Uncategorized
* severity: => Normal
* easy: => 0
Comment:
Hi
I'm not sure about this.
I have a table in which the objects are already sorted in the right order.
{{{
for p in Programme.objects.all()
}}}
will output names beginning with a unicode character (É in this instance)
at the end of the list, while
{{{
for p in Programme.objects.all().order_by('created')
}}}
will output them in the right order.
I get the same behaviour with sqlite3 and PostgreSQL.
Django 2.2 / Python 3.7.4
Thanks
--
Ticket URL: <https://code.djangoproject.com/ticket/8384#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by yesyves):
OK, my error, I have a default sort in my model. Sorry !
--
Ticket URL: <https://code.djangoproject.com/ticket/8384#comment:3>