On Aug 22, 6:08 pm, justin jools <justinjo...@googlemail.com> 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 django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to