1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

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
This commit is contained in:
Adrian Holovaty 2007-03-25 18:07:00 +00:00
parent 5088488057
commit 25c15b17a8

View File

@ -283,14 +283,14 @@ class ModelAdmin(object):
Returns a QuerySet of all model instances that can be edited by the Returns a QuerySet of all model instances that can be edited by the
admin site in the "add" stage. admin site in the "add" stage.
""" """
return self.queryset() return self.queryset(request)
def queryset_change(self, request): def queryset_change(self, request):
""" """
Returns a QuerySet of all model instances that can be edited by the Returns a QuerySet of all model instances that can be edited by the
admin site in the "change" stage. admin site in the "change" stage.
""" """
return self.queryset() return self.queryset(request)
def save_add(self, request, model, form, post_url_continue): def save_add(self, request, model, form, post_url_continue):
""" """