Monday, May 2, 2011

Re: Form with manytomany field

anyone?
Maybe what I need is something like OneToMany relationship, i guess, but there's no such thing in django

2011/5/2 Daniel França <daniel.franca@gmail.com>
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