generic view list_detail: how do I pass id to another list? (I'm using
google app engine patch)

Ive defined my first view as follows:

def list_make(request):
    return object_list(request, Product_Make.all())

which works fine, now I want to pass the id selection to another list
on a different table/model, like this:

def list_model(request, key):
    return object_list(request, Product_Model.all()) but I dont know
how to get/pass the id.

my first list are makes: Audi, BMW, Ford in Product_Make
so I select e.g. BMW and want to pass that id to look up BMW models in
Product_Model, e.g. 300 series

my models:

class Product_Make(db.Model):
    """ Make model """
    title         = db.StringProperty(required=True,
verbose_name='MakeTitle')
    slug          = db.StringProperty(required=True)

class Product_Model(db.Model):
    make  = db.ReferenceProperty(Product_Make, required=True,
collection_name='make_set')
    title = db.StringProperty(required=True,  verbose_name='Model')
    slug  = db.StringProperty(required=True)
    derivative    = db.StringProperty(required=True)
    released      = db.DateProperty(auto_now_add = 1)
    picture       = db.BlobProperty(default=None)
    review        = db.TextProperty(required=True)

help please!
thanks very much

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to