On 19 Paź, 17:52, Daniel Roseman <[email protected]> wrote:
> On Oct 19, 4:17 pm, Tomasz Zieliński
>
>
> It's not clear what you mean by 'all latest ObjectRevisions'. Do you
> mean all ObjectRevisions for a particular object? If so:
>     myobject.objectrevision_set.all()

I was unclear, but SQL should explain what I want to do - select
all ObjectRevision-s that are latest in Object-s that they belong to.
Moreover, I want to do this in with one ORM query, without resorting
to SQL or splitting the query too much.

--
Tomasz Zielinski
http://pyconsultant.eu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to