#27223: model RangeField with default value are skiped in ModelForm full_clean
validation in construct_instance function
---------------------------------+--------------------------------------
Reporter: taxido | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 1.10
Severity: Release blocker | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Description changed by taxido:
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.fa466d510ea4e61284060a66ec143bd5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.