From 8aafb73e2347febe83c7760a72d10976cc0a35f3 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 11 Apr 2011 09:53:23 +0000 Subject: [PATCH] fix collect_sub_objects git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1022 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/models/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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): """ -- 2.30.2