[Fixed]-What is the all() function in RelatedManager?

1👍

The RelatedManager is a Manager and not a QuerySet, but it implements the database-abstraction API and because of that it has all the QuerySet methods such as get(), exclude(), filter() and all().

The difference in calling all() in a RelatedManager is that it actually performs a query in the database.

The all() method returns a QuerySet.

0👍

You can execute any QuerySet function to a RelatedManager object. Yes, it will return a QuerySet, you can perform .all(), .filter(), etc.

👤Gocht

Leave a comment