Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

newforms-admin: Properly apply ordering in ModelAdmin.queryset.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 678b9a6f5a0dfdf571e6dc66ade5521314047deb 1 parent be4e869
@brosner brosner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/options.py
View
2  django/contrib/admin/options.py
@@ -299,7 +299,7 @@ def queryset(self, request):
# TODO: this should be handled by some parameter to the ChangeList.
ordering = self.ordering or () # otherwise we might try to *None, which is bad ;)
if ordering:
- qs.order_by(*ordering)
+ qs = qs.order_by(*ordering)
return qs
def get_fieldsets(self, request, obj=None):
Please sign in to comment.
Something went wrong with that request. Please try again.