Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4266 closed (fixed)

[unicode] str2smart_str

Reported by: Thomas Güttler <hv@…> Owned by: Malcolm Tredinnick
Component: Uncategorized Version: master
Severity: Keywords: unicode admin
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:



here is a small patch to django/contrib/admin/templatetags/

Attachments (1)

admin_list_smart_str.diff (951 bytes) - added by Thomas Güttler <hv@…> 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Thomas Güttler <hv@…>

Attachment: admin_list_smart_str.diff added

comment:1 Changed 11 years ago by Malcolm Tredinnick

Owner: changed from Jacob to Malcolm Tredinnick
Summary: unicode branch: str2smart_str[unicode] str2smart_str
Triage Stage: UnreviewedAccepted

comment:2 Changed 11 years ago by Malcolm Tredinnick

Thomas: what would be an example of how to test this change? In other words, if I don't apply the patch, what is a way to cause the admin interface to break? I can't immediately work out how to execute that piece of code.

I have a feeling it's not fixing the real cause of the problem, because html.escape() is already calling smart_unicode() on its input. So I suspect the solution might be to remove the str() call altogether on that line and just use escape(field_val).

comment:3 Changed 11 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [5200]) unicode: Adjusted the admin interface to handle unicode strings. May still need
some tweaking, but the bulk of it should be correct. Fixed #4266.

comment:4 Changed 11 years ago by Thomas Güttler <hv@…>

Thank you Malcolm. Your changes work for me.

Note: See TracTickets for help on using tickets.
Back to Top