Author: adrian Date: 2006-05-04 22:24:42 -0500 (Thu, 04 May 2006) New Revision: 2844
Modified: django/trunk/django/contrib/admin/templatetags/admin_list.py Log: Fixed #1699 -- Fixed JavaScript error in admin site with raw_id_admin and database backend that returns integers as long ints Modified: django/trunk/django/contrib/admin/templatetags/admin_list.py =================================================================== --- django/trunk/django/contrib/admin/templatetags/admin_list.py 2006-05-05 03:19:16 UTC (rev 2843) +++ django/trunk/django/contrib/admin/templatetags/admin_list.py 2006-05-05 03:24:42 UTC (rev 2844) @@ -167,7 +167,7 @@ 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: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates -~----------~----~----~----~------~----~------~--~---