Permalink
Browse files

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
  • Loading branch information...
1 parent 5088488 commit 25c15b17a86fa95b5374b9ef6366450b28a28b7a @adrianholovaty adrianholovaty committed Mar 25, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/options.py
@@ -283,14 +283,14 @@ def queryset_add(self, request):
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):
"""

0 comments on commit 25c15b1

Please sign in to comment.