What you might be asking for is the following syntax, that allows you to perform queries against the data in more than one table:
CurrentRanking.objects.filter (school__schoolseason__league__league_name="League Name").order_by('- rating') Those are double underscores between the model names and the field name. Based on how your models are linked, you might need to play around with this a little bit to get exactly what you want, but this is basically how you create JOINs in your queries. Hope it helps! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---