Ticket #3803: newforms_admin_queryset.diff

File newforms_admin_queryset.diff, 779 bytes (added by estelle@…, 18 years ago)

Patch

  • django/contrib/admin/options.py

     
    283283        Returns a QuerySet of all model instances that can be edited by the
    284284        admin site in the "add" stage.
    285285        """
    286         return self.queryset()
     286        return self.queryset(request)
    287287
    288288    def queryset_change(self, request):
    289289        """
    290290        Returns a QuerySet of all model instances that can be edited by the
    291291        admin site in the "change" stage.
    292292        """
    293         return self.queryset()
     293        return self.queryset(request)
    294294
    295295    def save_add(self, request, model, form, post_url_continue):
    296296        """
Back to Top