Hallöchen! Jani Tiainen writes:
> [...] > > Now it's trivial play with sub products and add spesific > subproducts to orderproduct. > > But, then, how to list all SubProducts that belongs to spesific > order? > > Specially thing stops at "Product", it doesn't know which one of > those two subproducts it actually is. I had the same issue. Unfortunately, Django itself doesn't have a built-in solution for that. I used http://dpaste.com/97085/ for it. It's the same as you did but automatic. You simply call product.find_actual_instance() and you get the object of the true type (e.g. subproduct1). Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [email protected] or http://bronger-jmp.appspot.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

