#29627: QueryDict.urlencode() behaviour changed
-----------------------------------------+------------------------
Reporter: RafaĆ P. | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
In version 2.0 it was possible to pass integer values to QueryDict and
urlencode() it:
{{{
from django.http import QueryDict
d = QueryDict('', mutable=True)
d["a"] = 1
d.urlencode()
'a=1'
}}}
in 2.1 it raises `AttributeError: 'int' object has no attribute 'encode'`.
I think this should be listed as backward - incompatible change in the
[https://docs.djangoproject.com/en/2.1/releases/2.1/ Release Notes].
--
Ticket URL: <https://code.djangoproject.com/ticket/29627>
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/050.ade8e95e8af4babfee21e62561b2cbfe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.