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
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) )
2 matches
Mail list logo