Changes between Version 1 and Version 2 of Ticket #35665, comment 3
- Timestamp:
- Aug 11, 2024, 10:29:48 PM (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35665, comment 3
v1 v2 1 1 Replying to [comment:2 Simon Charette]: 2 3 ''Edit: Thanks for the super fast fix. I noticed just now that you said "Supporting explicit empty ordering on Window functions and slicing" and I wanted to call this bit out, as it's a *bit* less of a footgun, as it's could be the default, and was my actual original issue.'' 2 4 3 5 Yes, it returns them in database order, which is acceptable in this case. 4 6 5 The actual issue was a Model having no {{{Meta.ordering}}}. Since both cause the issue, and we require `order_by()` to be explicit at the query level, I used the `.order_by()` example. The following will also fail, as the products model has no default ordering:7 The original issue was a Model having no {{{Meta.ordering}}}. Since both cause the issue, and we require `order_by()` to be explicit at the query level, I used the `.order_by()` example. The following will also fail, as the products model has no default ordering: 6 8 7 9 {{{ … … 16 18 verbose_name_plural = "Products" 17 19 }}} 20