Commits

mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 7c0e7c1

unicode: Fixed #454 -- Fixed admin bug for custom primary keys. Thanks,
me@hiddedpp.com.

  • Participants
  • Parent commits ef7e1f9
  • Branches unicode

Comments (0)

Files changed (1)

File django/contrib/admin/views/main.py

 
     # Populate deleted_objects, a data structure of all related objects that
     # will also be deleted.
-    deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), object_id, escape(obj)), []]
+    deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), force_unicode(object_id), escape(obj)), []]
     perms_needed = sets.Set()
     _get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1)