Django: instantiating M2M-through models


/ Published in: Python
Save to your folder(s)

Now that you have set up your ManyToManyField to use your intermediary model (Membership, in this case), you're ready to start creating some many-to-many relationships. You do this by creating instances of the intermediate model:

URL: http://docs.djangoproject.com/en/1.1/topics/db/models/#extra-fields-on-many-to-many-relationships

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.