I recommend taking a look at Formsets and, in particular, Inline Formsets.
The documentation:
ModelForms: https://docs.djangoproject.com/en/1.10/topics/forms/modelforms/
ModelFormsets: https://docs.djangoproject.com/en/1.10/topics/forms/modelforms/#model-formsets
InlineFormsets: https://docs.djangoproject.com/en/1.10/topics/forms/modelforms/#inline-formsets
The API documentation:
https://docs.djangoproject.com/en/1.10/ref/forms/models/
https://docs.djangoproject.com/en/1.10/ref/forms/models/#inlineformset-factory
You may want to use something like Django dynamic forms on the frontend to utilize JavaScript.
--
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...@googlegroups.com.
To post to this group, send email to
django...@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/9e3e6e5a-729c-46ab-aa12-b73207a0d88b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.