Re: how could i specify column by using ManyToManyField ?

2009-10-29 Thread Kenneth Gonsalves
On Thursday 29 Oct 2009 3:09:51 pm lijihuai wrote: > class Novel(models.Model): > name = CharField() > > class Author(models.Model): > name = CharField() > novels = models.ManyToManyField(Novel, db_table='author_novels') > > how could i map the columns novel_id and

how could i specify column by using ManyToManyField ?

2009-10-29 Thread lijihuai
hello, everyone now, in the scene: there are some tables in my database, table novels: id (primary key), name table authors: id (primary key), name table author_novels: id (primary key), novel_id ( references novels(id) )