[Answer]-Using Django class based views, how do I create a form where I can add an arbitrary amount of related objects?

1👍

What you’re after here is formsets. The first is a simple ModelFormset, the second is an InlineModelFormset.

Unfortunately, for reasons I’ve never understood, there is no built-in generic view to handle formsets. The third-party django-extra-views provides them, though.

Leave a comment