django/django — pull request #2030 by frankwiles (2013-12-05 00:05:25+00:00)
Title: Fixing manager documentation inaccuracy

Current docs cause the methods to fail with a relatively obscure error of:

AttributeError: 'NoneType' object has no attribute '_meta'

Because self.model isn't being passed in. I ran into this today and spent quite a bit of time sorting it out and I'm sure others have or will.