Hello,

I tried to add multiple manytomany fields to a class, that pointing to
the same class.

For example:

class person(models.Model):
    name = models.CharField(max_length=30)
    phone = models.CharField(max_length=9, blank=True, null=True)
    def __unicode__(self):
        return self.name

class concert(models.Model):
    title = models.CharField(max_length=80)
    musicans = models.ManyToManyField(person)
    coches = models.ManyToManyField(person, blank=True, null=True)
    def __unicode__(self):
        return self.title


But it doesn't work, how can I do it?



Thank you very much.
(sorry but my English)

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to