-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(events): use django qs functions in max_* and min_duration filters
There were 'ProgrammingError' thrown when using max or min_duration filter with hide_recurring_children filter. This was because the *_duration filters were defined to use custom sql WHERE clauses without referring to which table the fields in the WHERE clause was referring to and there were other tables joined to the query by hide_recurring_ children filter. Solution was to convert these max and min_duration filters to be using django qs functions. Also refactors the max_ and min_duration filters away from api.py to filters. Refs LINK-2203
- Loading branch information
Showing
4 changed files
with
131 additions
and
41 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
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