Changes between Version 1 and Version 3 of Ticket #33594
- Timestamp:
- Mar 22, 2022, 7:45:52 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33594 – Description
v1 v3 1 1 In our codebase, someone used `SomeModel.objects.order_by("foo__-created_at")` to order according to a foreign key's field and it was working (yielding the correct query with `DESC` order). 2 2 3 However, after we added the following index on ` SomeModel`:3 However, after we added the following index on `Foo`: 4 4 5 5 {{{