key is used in replacement of 'id' in Google app engine (patch) Essentially this doesnt matter, assume it is id in normal django. I would just like to know how to do a list, list, detail query. When I pass the id from first list to query a second list in a different table: i.e. first list/table is car make: Audi, BMW and second list/ table is Car Model: e.g. Audi: T100, Qauttro i get 'kind error - is not a sub class of...'
My question is not about errors though, I would just like to know a method for doing list, list category drill down queries, as I cant find any examples. I guess another obvious example for a product database like this could be a grocery list: type: veg, meat/fish, alcohol: choice Alcohol. second list: whiskey, gin, vodka, beer: choice beer. third list: beer by brand. I think you get the idea. Thanks for your help. On Aug 22, 7:16 pm, Daniel Roseman <[email protected]> wrote: > On Aug 22, 6:08 pm, justin jools <[email protected]> wrote: > > > > > how can I show a list then pass the id to next list lookup then > > detail? > > > basically I'm writing a car product database with make, type and model > > tables: > > > so first list is Audi, BMW, Ford... the next list is e.g. Audi models: > > T100, Quattro, then last selection is detail. > > > I used this view model and tried to change the Product.Make to lookup > > Product.Model but get 'kind error - is not a sub class of...' > > > def list_make(request): > > return object_list(request, Product_Make.all()) > > > (show_make called in template) > > > def show_make(request, key): > > return object_detail(request, Product_Make.all(), key) : this is > > detail which works > > > I tried to change to look up the model list, but get error: > > > def show_make(request, key): > > return object_list(request, Product_Model.all(), key) > > But you haven't told us what 'key' is. Is it the ID of a make, or > what? > -- > DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

