1👍
Use self.form.fields
as shown here.
Update in response to comment
form = OrderItemForm()
form.product.queryset = Product.objects.filter(..filter here..)
formset = FormSet(formset=BaseFormSet, form=form)
Source:stackexchange.com
1👍
Use self.form.fields
as shown here.
Update in response to comment
form = OrderItemForm()
form.product.queryset = Product.objects.filter(..filter here..)
formset = FormSet(formset=BaseFormSet, form=form)