-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select_related
, out of scope?
#18
Comments
It's hard to say. It depends on how complex it will be. I really want to keep the API and the implementation small and simple. If fear that adding the CTE to a query where the tree model isn't the base model of the queryset will complicate things, maybe a lot and introduce tricky edge cases which will have to be fixed when new Django versions are released. The beauty of django-tree-queries is that it mostly works (or worked) the same for Django 1.8 up to 3.2. (The |
I tried it, and most of the new code is copied from
This actually might be the proper solution (although it does another query), since it adds the fields to the actual tree model, rather than adding them to the reference-by model (how annotate works generally). |
We have had a few issues with subqueries, annotations etc. not working properly in the last three years; not many, but too many to think that something like supporting So, I think that this feature request is out of scope, and we should instead add documentation on how to work within the current constraints. |
I was wondering what features will be considered out of scope and too much for this library, and what features isn't.
For example, in the test suite, how can we query
ReferenceModel
and select the tree model with it's tree fields?The text was updated successfully, but these errors were encountered: