Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Brian Rosner authored April 27, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/options.py
2  django/contrib/admin/options.py
@@ -299,7 +299,7 @@ def queryset(self, request):
299 299
         # TODO: this should be handled by some parameter to the ChangeList.
300 300
         ordering = self.ordering or () # otherwise we might try to *None, which is bad ;)
301 301
         if ordering:
302  
-            qs.order_by(*ordering)
  302
+            qs = qs.order_by(*ordering)
303 303
         return qs
304 304
 
305 305
     def get_fieldsets(self, request, obj=None):

0 notes on commit 678b9a6

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