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):
"""
self.saved_pk = self.pk
signals.post_save.send(sender=self.__class__, instance=self, created=(not record_exists))
- def validate_unique(self, exclude=None):
- #Â FIXME: we are bypassing the unicity checks, as they break
- # the admin interface
- pass
-
@classmethod
def scoped(base_class, base_dn):
"""