I found a quick workaround I changed it to forms.FloatField and then I
cast to an int in the clean_XXX function. (it is just for page number in
my case so I don't care if it auto truncates/rounds)
--
Ticket URL: <https://code.djangoproject.com/ticket/26890>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: jon.dufresne@… (added)
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
I believe this is just a matter of coercing the value to a text type
instead of `str` to handle Python2.
<https://github.com/django/django/pull/6908>
--
Ticket URL: <https://code.djangoproject.com/ticket/26890#comment:1>
* type: Uncategorized => Bug
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26890#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"76e19da5b0385d4f8afda509e0b60f77f7ffc4c2" 76e19da]:
{{{
#!CommitTicketReference repository=""
revision="76e19da5b0385d4f8afda509e0b60f77f7ffc4c2"
Fixed #26890 -- Fixed IntegerField crash on Unicode numbers.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26890#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"acb804e55290f9d3dda459fcfb7820f9e3fcbb6c" acb804e5]:
{{{
#!CommitTicketReference repository=""
revision="acb804e55290f9d3dda459fcfb7820f9e3fcbb6c"
[1.10.x] Fixed #26890 -- Fixed IntegerField crash on Unicode numbers.
Backport of 76e19da5b0385d4f8afda509e0b60f77f7ffc4c2 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26890#comment:4>