1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #7154 -- Inherit all model managers from abstract base classes.

Also added documentation describing how manager inheritance works (and when
manager aren't inherited). Based on some patches from sebastian_noack and
emulbreh.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2008-09-02 09:04:54 +00:00
parent cf5087fdb2
commit f31425e8e2
6 changed files with 211 additions and 9 deletions

View File

@@ -44,6 +44,9 @@ class Options(object):
self.abstract = False
self.parents = SortedDict()
self.duplicate_targets = {}
# Managers that have been inherited from abstract base classes. These
# are passed onto any children.
self.abstract_managers = []
def contribute_to_class(self, cls, name):
from django.db import connection