I need to display several forms (up to 10) of the model on the page. This is the code I use to execute this.
TheFormSet = formset_factory(SomeForm, extra=10) ... formset = TheFormSet(prefix='party') return render_to_response('template.html', { 'formset' : formset, })
The problem is that it seems to me that Django is querying the database for each of the forms in the form set, although the data displayed in them is the same.
Is this the way Formsets work, or am I doing something wrong? Is there a way to get around it inside django or will I have to use JavaScript to work around?
source share