I have a field called subjects that asks users how many subjects do they have and based on the number they input I want to generate the input fields of same number. And How and where do I store those inputs.
MODELS.PY
#this field will determine how many input fields to generate
subjects = models.IntegerField()
VIEWS.PY
def generate_forms(request):
no_of_fields = request.GET.get('subjects')
if no_of_fields:
#generate other inupts
#save it in the database
Besides generating the input, how do I save those data in the database. Thanks in advance