Re: selectively remove forms from formset in view function

2016-05-22 Thread Richard Brockie
OK - after playing around with this I am finding that it is rather difficult. Instead, I recommend that you only create the forms that you need in the first place in the view function. This requires a change in the structure of my code, so I'll have to make do for the time being with the larger

selectively remove forms from formset in view function

2016-05-19 Thread Richard Brockie
Hi, I'm working with pagination of a large formset in my view function. For forms outside the range to be viewed, I'm currently doing this: for form in results_formset: place_to_test = int(form['placing'].value()) if place_to_test not in visible_range: form.fields['race_number']