Changes between Version 5 and Version 6 of Ticket #35751, comment 4


Ignore:
Timestamp:
Sep 10, 2024, 8:24:33 PM (9 days ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35751, comment 4

    v5 v6  
    33> Using a many to many relation for ordering (which is something you shouldn't do?)
    44
    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?
     5Could you describe what you expecting to happen when specifying `order_by("booking_times__date")` if not for each item to be returned multiple times?
    66
    77What 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")`?
Back to Top