Re: Distinct users ordered by remote field

2009-01-06 Thread coan
On Jan 6, 12:22 am, Malcolm Tredinnick wrote: > Right now, with trunk or Django 1.0, it's not particularly easy without > using custom SQL or extra(). Ok! Thanks for clearing that up for me, I'll filter it manually. --~--~-~--~~~---~--~~ You received this messa

Re: Distinct users ordered by remote field

2009-01-05 Thread Malcolm Tredinnick
On Mon, 2009-01-05 at 04:42 -0800, coan wrote: > I have a model that looks something like this: > > class Collection(models.Model): > user = models.ForeignKey(User) > item = models.ForeignKey(Items) > date = models.DateTimeField() > > I'm trying to retrieve a list of unique users ordered by t