X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fdjango-ldapdb.git;a=blobdiff_plain;f=ldapdb%2Fmodels%2Fbase.py;h=13ceea1a75f94471e8621426f497e8518d7e6c1e;hp=1d54480b086fa756d1e77d8b01470ee89abfb8f2;hb=0a8f68c0f405160561f545a52dd34158e10843d6;hpb=9f6b1812de19fef1d735a7be64f0855fb079f233 diff --git a/ldapdb/models/base.py b/ldapdb/models/base.py index 1d54480..13ceea1 100644 --- a/ldapdb/models/base.py +++ b/ldapdb/models/base.py @@ -56,14 +56,6 @@ class Model(django.db.models.base.Model): super(Model, self).__init__(*args, **kwargs) self.saved_pk = self.pk - def _collect_sub_objects(self, seen_objs, parent=None, nullable=False): - """ - This private API seems to be called by the admin interface in django 1.2 - """ - pk_val = self._get_pk_val() - seen_objs.add(self.__class__, pk_val, self, - type(parent), parent, nullable) - def build_rdn(self): """ Build the Relative Distinguished Name for this entry. @@ -163,3 +155,5 @@ class Model(django.db.models.base.Model): new_class = new.classobj(name, (base_class,), {'base_dn': base_dn, '__module__': base_class.__module__}) return new_class + class Meta: + abstract = True