Changes between Version 4 and Version 5 of Ticket #35751, comment 4
- Timestamp:
- Sep 10, 2024, 4:20:58 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35751, comment 4
v4 v5 5 5 Could you describe wha are you expecting to happen when specifying `order_by("booking_times__date")` if not for each item to be returned multiple times? 6 6 7 What are you expecting `booking_times__date` to even mean? Are you looking for `order_by(Min("booking_times__date"))` instead so the items are ordered by their first booking date, or maybe `Max("booking_times__date")` so its the item with the booking that ends first, or maybe you interested in ordering by the shortest booking duration ?7 What are you expecting `booking_times__date` to even mean? Are you looking for `order_by(Min("booking_times__date"))` instead so the items are ordered by their first booking date, or maybe `Max("booking_times__date")` so its the item with the booking that ends first, or maybe you interested in ordering by the shortest booking duration so `Max("booking_times__date") - Min("booking_times__date")`? 8 8 9 9 See #20842 which introduced this documentation addition and ticket:20842#comment:3 which explains why `order_by("booking_times__date")` by itself doesn't make much sense and should likely be deprecated.