Consider the following setup:
Class country holds all country's
Class City holds all city's with a foreignkey to the country
Class schools holds all schools with a foreingkey to city
I want a url like ...school/country/city
In that way I can get a list of all schools in a city from a country.
How do I the lookup view
from schools.models import School
def schools(request, country, city)
schools = School.objects.?????
I'm not sure how to do this in one "def"...
Thanxs for your help
Enquest
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---