Re: Multiple ManyToMany relations with the same class

2008-10-07 Thread Ariel Mauricio Nunez Gomez
Por cierto, cuando ya este la base de datos llena de actuaciones nos invitas a escuchar a los samberos. Ariel. On Tue, Oct 7, 2008 at 12:05 PM, Pablo Catalina <[EMAIL PROTECTED]>wrote: > # python manage.py validate > Error: One or more models did not validate: > concerts.concert: Accessor for m

Re: Multiple ManyToMany relations with the same class

2008-10-07 Thread Pablo Catalina
# python manage.py validate Error: One or more models did not validate: concerts.concert: Accessor for m2m field 'musicans' clashes with related m2m field 'person.concert_set'. Add a related_name argument to the definition for 'musicans'. concerts.concert: Accessor for m2m field 'coches' clashes wi

Re: Multiple ManyToMany relations with the same class

2008-10-06 Thread Malcolm Tredinnick
On Mon, 2008-10-06 at 13:52 -0700, xkill wrote: > 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

Re: Multiple ManyToMany relations with the same class

2008-10-06 Thread James Bennett
On Mon, Oct 6, 2008 at 3:52 PM, xkill <[EMAIL PROTECTED]> wrote: > But it doesn't work, how can I do it? The error message you will receive will tell you what to do. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~-

Multiple ManyToMany relations with the same class

2008-10-06 Thread xkill
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