Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 25c15b17a86fa95b5374b9ef6366450b28a28b7a 1 parent 5088488
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/options.py
View
4 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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.