Index: django/contrib/admin/media/js/admin/RelatedObjectLookups.js
===================================================================
--- django/contrib/admin/media/js/admin/RelatedObjectLookups.js (revision 6825)
+++ django/contrib/admin/media/js/admin/RelatedObjectLookups.js (working copy)
@@ -3,6 +3,7 @@
 
 function html_unescape(text) {
     // Unescape a string that was escaped using django.utils.html.escape.
+    text = "" + text; // coerce from integer, probably
     text = text.replace(/&lt;/g, '<');
     text = text.replace(/&gt;/g, '>');
     text = text.replace(/&quot;/g, '"');