Changes between Version 1 and Version 2 of Ticket #31657, comment 2
- Timestamp:
- Jun 3, 2020, 7:47:57 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31657, comment 2
v1 v2 2 2 3 3 - `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` 5 5 - `order_by('record__root__id')` should result in `ORDER BY root_join.id`