This form contains all standard widgets, Django provides out of the box.
Here we use a Django Form instance with a overridden render method suitable for the <django-formset>-widget.
This allows us to use the built-in __str__()-method and hence render the form using {{ form }} inside a template. In this use case, our Form class must additionally inherit from formset.utils.FormMixin.
Such a Form class can for instance be defined as:
from django.forms import forms, fields
from formset.utils import FormMixin
class CompleteForm(FormMixin, forms.Form):
last_name = …
An instantiated Form object then can be rendered by a template using Django's variable expansion instead of a special templatetag:
<django-formset endpoint="{{ request.path }}" csrf-token="{{ csrf_token }}">
{{ form }}
...
</django-formset>