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.
--
Ticket URL: <https://code.djangoproject.com/ticket/27223>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
`RangeWidget` is a subclass of `MultiWidget` so the patch for #27186
should fix this. Could you confirm?
In investigating the other widgets in `contrib.postgres`, I noticed that
`SplitArrayWidget` needs to be fixed. I'll push an update to my PR
shortly.
--
Ticket URL: <https://code.djangoproject.com/ticket/27223#comment:1>
Old 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.
New description:
Yes, this patch fix this.
Thank you, and I waiting for 1.10.2 shortly
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27223#comment:2>
Comment (by taxido):
Yes, this patch fix this.
Thank you, and I waiting for 1.10.2 shortly
--
Ticket URL: <https://code.djangoproject.com/ticket/27223#comment:3>
Old description:
> Yes, this patch fix this.
> Thank you, and I waiting for 1.10.2 shortly
New 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.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27223#comment:4>