MultipleSelect2HiddenInput returns bad has_changed value #45

mociepka opened this Issue Jun 12, 2013 · 0 comments


None yet
1 participant

mociepka commented Jun 12, 2013

MultipleSelect2HiddenInput extends forms.TextInput that widget gets his _has_changed from Widget class:

That function is not good for many value widgets because for initial values: None, [] it returns True...

You have to use _has_changed from:

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.

applegrew closed this in ddbbb6a Jun 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment