Hello, i have a situation in which some of the data is stored in LDAP which is accessed by django-ldapdb, so this is the Contacts model:
import ldapdb.models class LdapContact(ldapdb.models.Model): common_name = models.CharField(db_column='cn', max_length=200, primary_key=True,editable=False) uid = models.CharField(db_column='entryUUID', max_length=200,editable=False) title = models.CharField (db_column='title',max_length=50,blank=True) surname = models.CharField(db_column='sn',max_length=50) firstname = models.CharField(db_column='givenName',max_length=50) Using ldapdb i can query/modify/create data in LDAP, but consider this, i also want to 'relate' contacts with Project model: from django.db import models from dummy.LdapContacts import LdapContact class Project(models.Model): name = models.CharField(max_length=20) details = models.CharField(max_length=200,null=True,blank=True) ldapcontact = models.ForeignKey (LdapContact,null=True,blank=True,verbose_name='Contact person') ForeignKey will expect a db table with LdapContacts, and although ModelForm fills choices for ModelChoiceField using LdapContacts, when i try to use 'django magic' and access ldapcontact in Project model i get exception "Caught an exception while rendering: relation ... does not exist..." Similar behavior can be expected when using ManytoMany relations... How can this be solved? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.