On 11/14/07, Malcolm Tredinnick ([EMAIL PROTECTED]) wrote: >On Tue, 2007-11-13 at 15:19 -0700, Scott SA wrote: >> Hi, >> >> Okay, I've been having trouble getting this to work, though it _looks_ easy. >My results have proven otherwise (django 0.96, by the way.. I'm modifying an >esisting system, not creating a new one so don't have an upgrade option right >now). >> >> For simplicity, heres a table overview >> >> Any suggestions would be greatly appreciated, > >It's probably bug #2076.
Thanks. I was close by trying the select related but I see now I messed up on the django table prefix. I needed the app-name prefixing the table i.e. recs = Table_1.objects.select_related().order_by('app_table_2.name') instead of: recs = Table_1.objects.select_related().order_by('table_2.name') The first example works as desired, the second hurls errors. Thanks agian! Scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---