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) my models look like this: class Product_Make(models.Model): """ Make model """ title = models.CharField(max_length=100) slug = models.SlugField(unique=True) class Product_Type(models.Model): """ Type model """ title = models.CharField(max_length=100) slug = models.SlugField(unique=True) class Product_Model(models.Model): """ Model model """ title = models.CharField(max_length=255) slug = models.SlugField(unique=True) derivative = models.CharField(blank=True, max_length=255) type = models.ForeignKey(Product_Type) released = models.DateField(blank=True, null=True) cover = models.ImageField(upload_to='media', blank=True) review = models.TextField(blank=True) genre = models.ManyToManyField(Product_Make, blank=True) Can anyone give an example of how to do a list, list, detail lookup. I've looked at many tutorials and books but can't figure it out. Many Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---