Hacker News new | ask | show | jobs
by pmontra 988 days ago
> > Model.objects.filter(...)

> Its called a manager. I understand you don't like to type 'objects', it fits in the rails culture of being allergic to redundancy, though I can't really empathize with it.

The point it that the objects method adds zero information to the statement. However it's an opportunity to add a soon to be discovered bug when Django crashes because one forgets to type .objects

They should have made filter a method of all model classes and of the models.Manager class. Same thing for all its sibling methods.