forked from feincms/django-tree-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update query.py Add `pre_filter` and `pre_exclude` methods to TreeQuerySet. Make query methods call `_setup_query` to deal with sibling order and pre_filter persistence issues. * Update compiler.py Replace the `get_sibling_order_params` with `get_rank_table_params` to support early tree filtering. Change `sibling_order` and `pre_filter` from class variables to variables that have to be initiated by `_setup_query` so that they don't persist between user queries. Handle pre_filter params by passing them to the django backend. * Update test_queries.py Added tests for the `pre_filter` and `pre_exclude` methods.
- Loading branch information
Showing
3 changed files
with
231 additions
and
39 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