Based on the code in `testdata/fixtures/python/django-query.py` and `django-manager.py`, here's how it all fits together. `BaseManager.from_queryset()` (line 108 ...
Here's a thorough explanation of how Django's QuerySet pipeline works, based on the actual source code in this fixture. `ManagerDescriptor.__get__` (lines 183-204) raises `AttributeError` if accessed ...