magic-removal: Added small comment for ManagerDescriptor

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-30 02:19:45 +00:00
parent f925d89d11
commit 50e17688b0
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ class Manager(QuerySet):
return [typecast_timestamp(str(row[0])) for row in cursor.fetchall()]
class ManagerDescriptor(object):
# This class ensures managers aren't accessible via model instances.
# For example, Poll.objects works, but poll_obj.objects raises AttributeError.
def __init__(self, manager):
self.manager = manager