From: jlaine Date: Mon, 11 Apr 2011 09:53:23 +0000 (+0000) Subject: fix collect_sub_objects X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8aafb73e2347febe83c7760a72d10976cc0a35f3;p=matthijs%2Fupstream%2Fdjango-ldapdb.git fix collect_sub_objects git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1022 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/models/base.py b/ldapdb/models/base.py index d09a5e0..661c2ed 100644 --- a/ldapdb/models/base.py +++ b/ldapdb/models/base.py @@ -75,11 +75,13 @@ class Model(django.db.models.base.Model): super(Model, self).__init__(*args, **kwargs) self.saved_pk = self.pk - def _collect_sub_objects(self, collector): + 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 """ - pass + pk_val = self._get_pk_val() + seen_objs.add(self.__class__, pk_val, self, + type(parent), parent, nullable) def build_rdn(self): """