This may be a dumb question but I've been banging my head against it for a while. Two questions, actually.
(I'm using the M-R branch.) 1) How can I use a field in a related model in a Meta.ordering clause? E.g. I want my Articles sorted by Reporter.lastname 2) How can I use a computed value in a Meta.ordering clause? E.g. I want my Reporters sorted by Reporter.number_of_articles_this_week() BTW, plugging the FK field into the ordering clause produces an OpertationalError, "Unknown table 'RELATED_TABLE_THAT_MOST_CERTAINLY_IS_KNOWN' in order clause." If the answer to my above questions is "you can't, sorry," then I hereby volunteer to at least try making that error message more useful. Thanks in advance for any advice. pb -- http://e-scribe.com/news/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---