Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a small bug in admin changelist view -- the code that handles o…

…rdering by

a related field still assumed the outdated ordering syntax.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9fb3f7fa932c9214f2b5114e9950529371f93023 1 parent fffe1d1
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/admin/
2  django/views/admin/
@@ -131,7 +131,7 @@ def change_list(request, app_label, module_name):
lookup_order_field = order_field
if isinstance(lookup_opts.get_field(order_field).rel, meta.ManyToOne):
f = lookup_opts.get_field(order_field)
- lookup_order_field = '%s.%s' % (,[0][0])
+ lookup_order_field = '%s.%s' % (,[0])
# Use select_related if one of the list_display options is a field with a
# relationship.
for field_name in lookup_opts.admin.list_display:
Please sign in to comment.
Something went wrong with that request. Please try again.