use force_text instead of force_unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Felipe Reyes |
Bug Description
Horizon's code base uses force_unicode()[0] function to ensure the an object is correctly transformed to unicode text, this function is part of Django. This function is deprecated.
Since Django 1.5 there are new functions to string handling[1] and force_unicode() since then is an alias of force_text(), but only available when Django is running in a Python 2.x interpreter, Django doesn't provide the alias when is running on Python 3.x[2]
Horizon should start using force_text() to be able to run on Python 3
[0] https:/
[1] https:/
[2] https:/
Changed in horizon: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
milestone: | none → juno-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
Patch at https:/ /review. openstack. org/#/c/ 107708/