Kaydet (Commit) b301640a authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #1699 -- Fixed JavaScript error in admin site with raw_id_admin and…

Fixed #1699 -- Fixed JavaScript error in admin site with raw_id_admin and database backend that returns integers as long ints

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 503a27d2
......@@ -167,7 +167,7 @@ def items_for_result(cl, result):
if first: # First column is a special case
first = False
url = cl.url_for_result(result)
result_id = getattr(result, pk)
result_id = str(getattr(result, pk)) # str() is needed in case of 23L (long ints)
yield ('<th%s><a href="%s"%s>%s</a></th>' % \
(row_class, url, (cl.is_popup and ' onclick="opener.dismissRelatedLookupPopup(window, %r); return false;"' % result_id or ''), result_repr))
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment