[Answered ]-Django group by jalali week number

1👍

Ok. Lets work out options:

  1. override the lookup method to work using the jalali calender format.
  2. convert your dates to gregorian format and store in another field, and call a function taht takes as input jalali format date, and sends the reciprocating gregorian format date to the lookup field.
  3. Keep the number of passengers for a week stored in a separate field, with key as jalali calender weekname and value will be the number of passengers for that week.
👤Maz

Leave a comment