Ticket #6323: change_view_patch.diff

File change_view_patch.diff, 598 bytes (added by chrj, 17 years ago)
  • django/contrib/admin/options.py

     
    536536        app_label = opts.app_label
    537537
    538538        try:
    539             obj = model._default_manager.get(pk=object_id)
     539            obj = self.queryset_change(request).get(pk=object_id)
    540540        except model.DoesNotExist:
    541541            # Don't raise Http404 just yet, because we haven't checked
    542542            # permissions yet. We don't want an unauthenticated user to be able
Back to Top