Ok. Thank you so much. So, formset is a suitable way to achieve this.
But, is it the most django-oriented way? Is there any alternative way?
Maybe using popup window to select a product, and handle the return
value of popup, then use a hiddenvalue to hold the return value. And
repeat this for many times, to add multiple product? Is it a common
way? Thanks again,

2011/8/23 Shawn Milochik <[email protected]>:
> On 08/22/2011 05:33 PM, ozgur yilmaz wrote:
>>
>> thanks,
>>
>> but i think i have to use a suitable js for adding a new product. am i
>> wrong?
>>
>
> To do it the way you want you'll have to use JavaScript, but it's easy
> (especially with jQuery) to dynamically add elements to your form. No
> refreshing necessary. Then handle the contents of request.POST appropriately
> in your view.
>
> --
> 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.
>
>

-- 
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