Sunday, May 1, 2011

Form with manytomany field

Hi all,
I'm trying to create a form from a model with ManyToManyField,
I want something like this: You fill some fields from the referenced table and you click at 'Add' and this appears at a table below the fields, so when I click
"Save" all the added items save (includind the new manytomany items)

Example:

Name [                              ]
Email [                              ]

Add Companys you've Worked for:
Company [                               ]  Telephone [                                ]   (ADD Button)
----------------------------------------------------------------------------------------------------------------------------------------
Company                    Telephone
Company XYZ              555 0123
Company ABC              123 4567

(Save Form Button)


I hope you can understand this... there's some easy way to implement this using Django?

Best Regards, 
Daniel França

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment