mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +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:
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user