Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4266 closed (fixed)

[unicode] str2smart_str

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

Description

Hi,

here is a small patch to django/contrib/admin/templatetags/admin_list.py

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

by Thomas Güttler <hv@…>, 17 years ago

Attachment: admin_list_smart_str.diff added

comment:1 by Malcolm Tredinnick, 17 years ago

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

comment:2 by Malcolm Tredinnick, 17 years ago

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 by Malcolm Tredinnick, 17 years ago

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 by Thomas Güttler <hv@…>, 17 years ago

Thank you Malcolm. Your changes work for me.

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