11.4.2012 23:47, David kirjoitti:
Thanks for your reply. I am grateful for your help. If you remember this
question when you feel less sleepy I'd be very interested to see the inner join
alternative :)
Thanks again
Well, after good night sleep I've some idea.
Something like should do the trick:
Log.objects.values('thing').annotate(deletion_date=Max('modified_on')).order_by('-deletion_date')
--
Jani Tiainen
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.