Changes between Version 1 and Version 2 of Ticket #31657, comment 2


Ignore:
Timestamp:
Jun 3, 2020, 7:47:57 PM (4 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31657, comment 2

    v1 v2  
    22
    33- `order_by('record__root_id')` should result in `ORDER BY root_id`
    4 - `order_by('record__root')` should use `OneModel.Meta.ordering` in `ORDER BY root_join.id DESC` [https://docs.djangoproject.com/en/3.0/ref/models/querysets/#django.db.models.query.QuerySet.order_by as documented]
     4- `order_by('record__root')` should use `OneModel.Meta.ordering` because that's what the `root` foreign key points to  [https://docs.djangoproject.com/en/3.0/ref/models/querysets/#django.db.models.query.QuerySet.order_by as documented]. That should result in `ORDER BY root_join.id DESC`
    55- `order_by('record__root__id')` should result in `ORDER BY root_join.id`
Back to Top