DJANGO - Issue using formsets
问题 So I have a form class in my forms.py file that i will use for creating a formset with a variable number of forms (the client will set the number of forms to display). The form class would be like this: forms.py from django import forms class example(forms.Form): CHOICES = [('choice1', 'choice1'), ('choice2', 'choice2')] field1 = forms.IntegerField() field2 = forms.DateTimeField() field3 = forms.ChoiceField(choices = CHOICES) And then in my views.py file i have something like this: views.py