Gentlemen, I'm new to the Django seen and am currently working on my
first application in it. In part of my model, I have a ManyToMany
relationship between the Purchase class and the Product class. The
ManyToMany relationship is called products and is in the Purchase
class. I'd like to add some additional columns/fields to the
automatically generated ManyToMany table. In this case, Django makes a
new table called <app>_purchase_products. I'd like to store some extra
info in this table such as a password for a download for example. Is
this possible in Django? I've combed the Model API and Google and
can't find an answer to this anywhere.

The only alternative I can think of is to manually make my own
ManyToMany table by actually hand coding a 3rd class with two foreign
key fields... one pointing to Purchase, and the other to Product. Is
this what I should do to get around not being able to add additional
columns to the auto-generate ManyToMany table? Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to