Hi there. I am having trouble with two many to many fields on the same model.
I've looked around and found this very similar to ticket 327 ( http://code.djangoproject.com/ticket/327 ) my models follow: class Project(meta.Model): name = name = meta.CharField(maxlength=100) ... class Account(meta.Model): authuser = meta.OneToOneField(users.User, edit_inline=meta.STACKED, core=True) owner = meta.ManyToManyField(Project, null=True, singular = "owned", related_name="owns") member = meta.ManyToManyField(Project, null=True, singular = "memberof", related_name="belongs" ) OK. I can fecht what projects are owned by an accout, then I can add an newly created Project instance (and properly saved with an id # - checked!). But when I fetch the get_owner_list() later... it's not there. after the second run the code runs on the same account I get an IntegrityError, with duplicates key. Looking at my mql database... the table that's relating accounts and projects (accounts_owned) is storing a project id of 0, but checking both at my python code and at the db the project id is right (it's aklready saved). Am I missing something obvious? Does the fact the the same model has an OneToOneField makes a difference? If it matters... I am running svn with mysqsl 4.1 on os x, python 2.4 Thanks a lot. Arthur --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---