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
This problem occurred when I try use that field in formset. Formset validates only changed forms, so now it will validate all forms in formset even extra ones.
The text was updated successfully, but these errors were encountered:
MultipleSelect2HiddenInput
extendsforms.TextInput
that widget gets his_has_changed
fromWidget
class: https://github.com/django/django/blob/stable/1.5.x/django/forms/widgets.py#L211.That function is not good for many value widgets because for initial values:
None, []
it returnsTrue
...You have to use
_has_changed
from: https://github.com/django/django/blob/stable/1.5.x/django/forms/widgets.py#L642.This problem occurred when I try use that field in formset. Formset validates only changed forms, so now it will validate all forms in formset even extra ones.
The text was updated successfully, but these errors were encountered: