Changes between Version 5 and Version 6 of Ticket #35751, comment 4
- Timestamp:
- Sep 10, 2024, 8:24:33 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35751, comment 4
v5 v6 3 3 > Using a many to many relation for ordering (which is something you shouldn't do?) 4 4 5 Could you describe wha areyou expecting to happen when specifying `order_by("booking_times__date")` if not for each item to be returned multiple times?5 Could you describe what you expecting to happen when specifying `order_by("booking_times__date")` if not for each item to be returned multiple times? 6 6 7 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")`?