﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9129	unicode support on admin delete	Ricardo	nobody	"Having the admin app in other language (portuguese, btw) and while trying to delete a record holding non-ascii characters it fails with:

{{{
'ascii' codec can't encode character u'\x??' in position ?: ordinal not in range(128)
}}}
I replaced contrib.admin.options.py, in delete_view()

{{{
if request.POST: # The user has already confirmed the deletion.
  if perms_needed:
     raise PermissionDenied
     obj_display = str(obj)
     obj.delete()
}}}
with

{{{
if request.POST: # The user has already confirmed the deletion.
  if perms_needed:
     raise PermissionDenied
     obj_display = u""%s"" % obj
     obj.delete()
}}}
looks ok.

I hold revision 8600 but diff'd against 9000 (haven't had time to sort django-multilingual difference)"		closed	contrib.admin	1.0		fixed	unicode, admin, delete		Unreviewed	1	0	0	0	0	0
