Opened 8 years ago
Last modified 8 years ago
#27223 closed Bug
model RangeField with default value are skiped in ModelForm full_clean validation in construct_instance function — at Initial Version
Reported by: | Dariusz Paluch | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.10 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://github.com/django/django/commit/4bc6b939944183533ae74791d21282e613f63a96
That change in construct_instance function makes a bug with custom full_clean validation for *RangeField like fields
RangeField values are send in POST method by two key=value pair:
my_range_0=1&my_range_1=9
that there is not my_range field in POST so field value is skipped and not copied to instance.
Note:
See TracTickets
for help on using tickets.