X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fdjango-ldapdb.git;a=blobdiff_plain;f=ldapdb%2Fmodels%2Fbase.py;h=bc6ca92e8c34e1a57a0ae046e3183669927d7ca9;hp=d09a5e0befbb9decbcfaf32ca62afa807cda66c1;hb=629356eed3430e528274c5a54c5291037bc0d985;hpb=1fa2f4f13848de14fcf16040fe9769fddafa229b diff --git a/ldapdb/models/base.py b/ldapdb/models/base.py index d09a5e0..bc6ca92 100644 --- a/ldapdb/models/base.py +++ b/ldapdb/models/base.py @@ -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): """