Skip to content
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent be4e869 commit 678b9a6f5a0dfdf571e6dc66ade5521314047deb @brosner brosner committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/
2 django/contrib/admin/
@@ -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):

0 comments on commit 678b9a6

Please sign in to comment.
Something went wrong with that request. Please try again.