You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have Self(Forward) which forwards the field's own value.
But this is django-autocomplete-light and Django supports Formsets.
In a Formset, there's a field naming convention (on the id and name attributes) that is roughly form-n-field where form is the name of the form and field the name of the field and n the form number in the set (0, 1, 2, 3, ...).
Formset(Forward) would collect all the values of that field in the formset and submit them as a list.
The server side can then use this list conveniently as an exclusion list to prevent, for example, any two forms in the formset having the same selection.
The text was updated successfully, but these errors were encountered:
As in, properly separated the reusable code from the site specific code to support formset exclusions. Adding this issue to DAL:
yourlabs/django-autocomplete-light#1313
in the hope of seeing better built-in support there some time.
We have
Self(Forward)
which forwards the field's own value.But this is django-autocomplete-light and Django supports Formsets.
In a Formset, there's a field naming convention (on the id and name attributes) that is roughly
form-n-field
whereform
is the name of the form andfield
the name of the field andn
the form number in the set (0, 1, 2, 3, ...).Formset(Forward)
would collect all the values of that field in the formset and submit them as a list.The server side can then use this list conveniently as an exclusion list to prevent, for example, any two forms in the formset having the same selection.
The text was updated successfully, but these errors were encountered: