Comment 3 for bug 701121

Revision history for this message
Ed Leafe (ed-leafe) wrote : Re: [Bug 701121] Re: Getting instances by ID when admin only returns deleted instances

On Jan 10, 2011, at 1:49 PM, Vish Ishaya wrote:

> I think perhaps there is a misunderstanding of the way this works. The
> current behavior is expected. You must explicitly set the context to
> read_deleted=True to access deleted records and you only get deleted
> records if you do so. There currently isn't a way to access deleted
> records and non-deleted records in the same query. It may be better for
> read_deleted to allow access to all records, but the current behavior
> was intentional.

 I'm creating the context using context.get_admin_context(). The default for read_deleted is True. Is that expected behavior?

-- Ed Leafe