We are going to build a system to manage course modules and their contents. We will need to build forms that can be used for managing multiple modules per course and different types of content for each module. Both modules and contents will have to follow a specific order and we should be able to reorder them using the CMS.
Managing course modules and content
Using formsets for course modules
Django comes with an abstraction layer to work with multiple forms on the same page. These groups of forms are known as formsets. Formsets manage multiple instances of a certain Form or ModelForm. All forms are submitted at once and the formset takes care of the initial number of forms to display, limiting the maximum number...