Wednesday, June 29, 2011

Re: getting objects unique in several ways (annotate?)

Dnia 2011-06-29, śro o godzinie 16:31 -0700, elliot pisze:
> Book.objects.annotate(mostrecent = Max('transaction__start_date'))

.values('pk')

Or whatever values you want.
--
Michał Sawicz <michal@sawicz.net>

No comments:

Post a Comment