I am working on a Django application which contains an Offer
model. An Offer
instance contains the pricing conditions and points to a product definition. The product model is actually a hierarchy (I have a Television
model, a Camcorder
model, etc.). So I would like the Offer
model to contain a polymorphic (or "generic") association to point to any product.
For now, all I have found is this to use the generic associations in the ContentTypes
application. This might do, but I am looking for alternatives, if any.
Thanks for your help.
(one solution per answer please)