On Fri, Jan 23, 2009 at 4:19 PM, Piotr Husiatyński <phusiatyn...@gmail.com> wrote: > > On 18 Sty, 12:06, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: >> Wait a few days until ticket #7210 is resolved and you'll be able to use >> references to other fields as rhs values in filters. The work for that >> is nearly complete, so it's pretty close to being committed. I'm fairly >> sure that will help you there. > > You mean #7210 http://code.djangoproject.com/ticket/7210 : "Added > expression support for QuerySet.update" > How that could solve my problem?
#7210 gives you the ability to reference a field as the 'value' part of a filter clause. So in your case, you could do something like: Thread.objects.filter(latest_post_date__gt=F('visted_date") to get all the objects where the latest post is after the visited date. Yours Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---