I have a template that renders a modelformset and I am trying to dynamically add rows to the formset upon the click of a button.
here is what the code look like: