summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2007-09-14 22:20:54 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2007-09-14 22:20:54 +0000
commit5ec5814bf97844db349b0e418668cc4c3edfbea4 (patch)
tree8404449ae932d3fe41499a85419bab3698373486 /django
parent64b9123b7a3a154d7d5f730048ae1de7b430e0a5 (diff)
newforms-admin: Fixed ordering for ModelAdmin.queryset. Refs #4926, but that ticket still needs ModelAdmin.changelist_view to use ModelAdmin.queryset.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 433be1ef46..ad10efda9d 100644
--- a/django/contrib/admin/options.py
+++ b/django/contrib/admin/options.py
@@ -292,7 +292,7 @@ class ModelAdmin(BaseModelAdmin):
Returns a QuerySet of all model instances that can be edited by the
admin site.
"""
- return self.model._default_manager.get_query_set()
+ return self.model._default_manager.get_query_set().order_by(*self.ordering)
def queryset_add(self, request):
"""