Django-Dynamic Form Increment ID for each new input element added in formset
I have a form which takes 4 fields as input as below:-
forms.py
AuthorFormset = modelformset_factory(
Author,
fields=('due_date','author' ),
extra=5,
widgets={'due_date': form