On 2/16/07, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > How do I select all the Cities from a State? I'm from sqlobject world > and I don't realize how can I do this with django.
kansas_cities = City.objects.filter(region__state__name__exact='Kansas') -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---