-
-
Notifications
You must be signed in to change notification settings - Fork 365
-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Get sublcass queryset only #549
Comments
It's been a long time since I used the
or something ought to do the trick. The That said. If you're after a homogenous queryset, why not just do:
and ignore the inheritance part entirely? It'll effectively be roughly the same query and without the additional complexity. |
Thank you very much this should work. I will use your suggestion even though I have embed category field in the product which are basically the subclasses so that I can filter on categories and no need to worry about subclassing. |
I can't get queryset for a particular subclass only. I want to get only products relating that subclass only
How do I get querysets for the subclass
Phone
without any other subclasses instancesI have gone through the documentation and didn't find any
I have built a custom filter that can do but it means I don't need the package and my concern is scalability of the custom implementation. I want to know if the package can help so I don't have to reinvent the wheel.
The text was updated successfully, but these errors were encountered: