mirror of https://github.com/django/django.git
Fixed #586 -- raw_id_admin now works with non-integer primary keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8dda2aeaa3
commit
261ab166ce
|
@ -431,7 +431,7 @@ def change_list(request, app_label, module_name):
|
|||
if j == 0: # First column is a special case
|
||||
result_id = getattr(result, pk)
|
||||
raw_template.append('<th%s><a href="%s/"%s>%s</a></th>' % \
|
||||
(row_class, result_id, (is_popup and ' onclick="opener.dismissRelatedLookupPopup(window, %s); return false;"' % result_id or ''), result_repr))
|
||||
(row_class, result_id, (is_popup and ' onclick="opener.dismissRelatedLookupPopup(window, %r); return false;"' % result_id or ''), result_repr))
|
||||
else:
|
||||
raw_template.append('<td%s>%s</td>' % (row_class, result_repr))
|
||||
raw_template.append('</tr>\n')
|
||||
|
|
Loading…
Reference in New Issue