summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-03-25 18:07:00 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-03-25 18:07:00 +0000
commit25c15b17a86fa95b5374b9ef6366450b28a28b7a (patch)
tree3ee8f5c6b52a3c10d5db245a6b6d7954c7a42a75
parent508848805701ae11273dc814a7012ad608318ef1 (diff)
newforms-admin: Fixed #3803 -- Fixed bug in ModelAdmin queryset_add() and queryset_change() methods. Thanks, estelle@expandingbrain.com
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/admin/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index b4c9d8f26b..88b91cc417 100644
--- a/django/contrib/admin/options.py
+++ b/django/contrib/admin/options.py
@@ -283,14 +283,14 @@ class ModelAdmin(object):
Returns a QuerySet of all model instances that can be edited by the
admin site in the "add" stage.
"""
- return self.queryset()
+ return self.queryset(request)
def queryset_change(self, request):
"""
Returns a QuerySet of all model instances that can be edited by the
admin site in the "change" stage.
"""
- return self.queryset()
+ return self.queryset(request)
def save_add(self, request, model, form, post_url_continue):
"""