Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored March 25, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/admin/options.py
4  django/contrib/admin/options.py
@@ -283,14 +283,14 @@ def queryset_add(self, request):
283 283
         Returns a QuerySet of all model instances that can be edited by the
284 284
         admin site in the "add" stage.
285 285
         """
286  
-        return self.queryset()
  286
+        return self.queryset(request)
287 287
 
288 288
     def queryset_change(self, request):
289 289
         """
290 290
         Returns a QuerySet of all model instances that can be edited by the
291 291
         admin site in the "change" stage.
292 292
         """
293  
-        return self.queryset()
  293
+        return self.queryset(request)
294 294
 
295 295
     def save_add(self, request, model, form, post_url_continue):
296 296
         """

0 notes on commit 25c15b1

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