Here's a link to the document how to handle intermediary model of
ManyToManyField using the "through" argument for the Django admin
site.
http://docs.djangoproject.com/en/dev//ref/contrib/admin/#working-with-many-to-many-intermediary-models

Is there something similar for forms created from a model which has an
intermediary model of ManyToManyField?

This is the most relevant information that I found on the web:
1. Exclude ManyToManyField from a ModelForm
2. Create formset using inlineformset_factory for the intermediary
model.
http://stackoverflow.com/questions/387686/what-are-the-steps-to-make-a-modelform-work-with-a-manytomany-relationship-with-a

Is there cleaner way to implement it?

If there isn't, than I have another question: I want to creating a
formset and render it in template, while its parent instance is not
created yet. Can I use "save_as_new" parameter in this case?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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