bypass unicity checks, to un-break admin interface
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Sat, 25 Dec 2010 08:33:45 +0000 (08:33 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Sat, 25 Dec 2010 08:33:45 +0000 (08:33 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@963 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/base.py

index d09a5e0..bc6ca92 100644 (file)
@@ -161,6 +161,11 @@ class Model(django.db.models.base.Model):
         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):
         """