I want to save some additional information in this automatically created ManyToMany join-table. How do I do this in Django?
In my case, I have two tables: "Employees" and "Projects". I want to store how much each employee receives per hour of work in each of the projects, because these values do not match. So how would I do that?
What occurred to me, instead of the "ManyToManyField" method, was to create an explicitly third class / table to store this new information and establish its connection with the "Employees" and "Projects" using the "ForeignKey" method. I'm sure this will work, but is this the best approach?
database django many-to-many model
Rodrogo Dec 14 '10 at 19:15 2010-12-14 19:15
source share