summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4367cd6)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1052
e071eeec-0327-468d-9b6a-
08194a12b294
self.ldap_alias = alias
break
self.ldap_alias = alias
break
+ def allow_syncdb(self, db, model):
+ "Do not create tables for LDAP models"
+ if is_ldap_model(model):
+ return db == self.ldap_alias
+ return None
+
def db_for_read(self, model, **hints):
"Point all operations on LDAP models to the LDAP database"
if is_ldap_model(model):
def db_for_read(self, model, **hints):
"Point all operations on LDAP models to the LDAP database"
if is_ldap_model(model):