Re: how to handle additional column in table for ManyToManyField

2007-09-28 Thread zeliboba
your reply gave me another idea: rename the class which I have now as Author to Person and create subclass Author using OneToOne relation, where I'll keep not only place, but also affiliation like this: from django.db import models class Person(models.Model): name = models.CharField(maxleng

Re: how to handle additional column in table for ManyToManyField

2007-09-28 Thread Toby Dylan Hocking
Hi, > the ManyToManyField creates additional refdb_reference_authors table > in database with columns "id", "reference_id", "author_id". now for > every Reference I can assign one or more Author with a link keeping in > this table. but additionally I'd like to keep the order of Author for > eve

how to handle additional column in table for ManyToManyField

2007-09-28 Thread zeliboba
hi all as I wrote recently, I tried to create custom reference manager in Django for keeping my collection of scientific publications. I'll try to explain my problem by working example of models.py: from django.db import models class Author(models.Model): name = models.CharField(maxlength=5