Skip to content
Discussion options

You must be logged in to vote

Hello @fed239 thanks for your question - sorry its been a decade for someone to get back to you!

There are a few concepts to understand here. First - the difference between a manager and a queryset. Model.objects is a Manager instance. Methods on that manager instance may return QuerySet instances (e.g. all). Which brings me to the first point:

  • If you write a custom QuerySet - the methods you add to that QuerySet will not be available on the manager by default unless you create a manager class from the QuerySet.

There are several ways to specify custom managers and querysets:

  1. PolymorphicManager.from_queryset()
     class CustomQuerySet(PolymorphicQueryset):
         ....
     class Model(Polymorph…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fed239
Comment options

@dsummersl
Comment options

Answer selected by fed239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #145 on December 10, 2025 19:32.