-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix group items by date range function
The problem is that `sorted` function can't compare None-value, but ex. RentAdjustment model's date fields can be nullable. By default now, the function converts None date values to min and max values and can be now sorted correctly.
- Loading branch information
Tomi Järvi
committed
Mar 8, 2021
1 parent
1c3aa43
commit ae80241
Showing
2 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters