Store Tabular Form Data to Database

6 views
Skip to first unread message

Aditya Khaund

unread,
Mar 1, 2017, 7:29:52 AM3/1/17
to Django users
Hello,

In one of my application I have a form in tabular format. I have following questions 

1) How can I add a row dynamically in my form?
2) While submitting how can I process multiple tables rows in view code and insert all of them to the database via model?

Omar Abou Mrad

unread,
Mar 1, 2017, 7:52:34 AM3/1/17
to django...@googlegroups.com
Have a look at FormSets, they do exactly what you require: https://docs.djangoproject.com/en/1.10/topics/forms/formsets/ 

Regards,

Reply all
Reply to author
Forward
0 new messages