On Wed, Mar 1, 2017 at 1:52 PM, Aditya Khaund <aditya.khaund51@gmail.com> wrote:
Hello,In one of my application I have a form in tabular format. I have following questions1) 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?
Have a look at FormSets, they do exactly what you require: https://docs.djangoproject.com/en/1.10/topics/forms/formsets/
Regards,
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwtXp2yXQpbwjNRNs9HoOu3t6Eq0ubqgP%3DzZ%3D6rbdpYz_wGKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment