This line was recently added as part of the datetime expression changes:
https://github.com/django/django/commit/2a4af0ea43512370764303d35bc5309f8abce666
#diff-5b0dda5eb9a242c15879dc9cd2121379R743
It seems to me that now, instead of ordering by the full date, this change
will make dates queries order by just the component that they are
selecting (e.g. year, month, day etc.) - although I might be wrong about
this!
--
Ticket URL: <https://code.djangoproject.com/ticket/26815>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Could you provide example queries to demonstrate the bug?
--
Ticket URL: <https://code.djangoproject.com/ticket/26815#comment:1>
* status: new => closed
* resolution: => needsinfo
Comment:
Does
[https://github.com/django/django/blob/12b4280444b58c94197255655e284e4103fe00a9/tests/dates/tests.py#L70-L78
this assertion] show the expected behavior?
--
Ticket URL: <https://code.djangoproject.com/ticket/26815#comment:2>
Comment (by Kazade):
Yeah, that test proves I'm wrong. Sorry!
--
Ticket URL: <https://code.djangoproject.com/ticket/26815#comment:3>
* resolution: needsinfo => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/26815#comment:4>