hi, in 0.91, i have the following models: town - just a name
coaches - contains a foreign key to towns I want to get a list of towns which have coaches in them. In sql this would be: "select distinct towns.name, towns.id from towns where towns.id in (select town from coaches)" what is the django way of doing this? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---