I was following the instructions found here: http://www.satchmoproject.com/docs/dev/custom-product.html#configuration to create my own product subtype. It's meant to be a "proxy" product, that shall connect one product to many sites (as currently, a product can only be connected to one site).
Now, when I am trying to open the admin view of any product, I get the error message 'Product' object has no attribute 'mynewproduct', which happens in Satchmo's /product/models.py in get_subtypes, line 1031. That line tries to access (in my case) product.mynewproduct, which, if I'm not wrong, would be used to access the instance of a subclass of product. The docs however say subclassing Product is a bad idea, so I didn't (basically exactly copied the code of the docs). So actually, I am not surprised about that error message, as the Product model shouldn't have a 'myproduct' attribute. The only search results I found here relating to that topic were for an old version (2009) and didn't really help me. So why is this being called? Why is it raising that exception? And what should I do to get my code running? I also took a look at the code for ConfigurableProduct and that's basically done the same as in the docs (and hence how I think I did it). There however, product DOES have a 'configurableproduct' attribute. Where's that coming from? Cheers, Dennis -- You received this message because you are subscribed to the Google Groups "Satchmo 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/satchmo-users?hl=en.
