> I'm not sure how Chris is filtering/ordering, but there are > several ways of specifying fields, depending on the context. In > filtering, one needs to use the double-underscore scheme as in > > Foo.objects.filter(foreignfieldname__foreignfield = 42) > > whereas in ordering, IIRC, you have to use periods instead: > > Entry.objects.order_by('-blogs_blog.name', 'headline') > > Both work in Trunk, but their syntax is different enough that it > can sting ya if you're not expecting it. YMMV, but it works for > everything I've thrown at it. > Yep. I've got several emails I've kept copies of that refer to this. Nothing helped my particular problem.
Chris --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---