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
Problem occours when we have MultiValueField with required=True.
MultiValueField sets required=False on every field it aggregates (in **init**()). Then during validation, on every field it aggregates, it uses MultiValueField.required to check if field was required. As far as server-side validation is concerned everything is OK. But in case of js-required-validation field is treated as not required, because MultiValueField set reqired=False on it.
So despite I got MultiValueField.required=True, Dojango doesn't set proper "required" validation in javascript on all fields. In fact all fields are optional, and when form is sent with an empty field, you get server-side validation errors: "Field X required, but empty".
I use Dojango 0.5.1, Django trunk 14865 (two months old), Python 2.7.1.
Original link: http://code.google.com/p/dojango/issues/detail?id=74
The text was updated successfully, but these errors were encountered:
Original link: http://code.google.com/p/dojango/issues/detail?id=74
The text was updated successfully, but these errors were encountered: