I am making a form to add many products to the same collection and I want the collection form to create the collection with an unlimited list of products.
My form is this:
class TendenciaForm(forms.ModelForm):
class Meta:
model = Tendencia
fields = ['nombre']
producto = forms.ModelChoiceField(
queryset=Marca.objects.all(),
widget=autocomplete.ModelSelect2(url='producto-autocomplete')
)
I know that there are formset but they are limited to an amount and I want all the products they need to be sent at the same time.