Hello, I have a use-case where I need to add fields to most (if not
all) of my products.  I came across Custom Product Modules in the docs
and I was able to register the type and see it in the admin.

It seems to be what I'm looking for but I have a feeling that since my
fields are a simple extension to the vanilla Product type, wouldn't it
be much easier to just inherit from Product so I can instantiate
MyProduct directly and access Product's fields directly?  Not sure if
these "Custom Product Modules" were added before django 1.1 to provide
this functionality or not, but it seems model inheritance is much
better.

Also, when using MyProduct, I wasn't able to access the 'product'
member as it didn't exist right after instantiating (and before
saving).  I'm not even sure how to programmatically add products using
MyProduct.

Also tried: p = new Product()
p.site = current site
p.name = 'test'
p.save()

and I still couldn't access p.myproduct.  Got the exception
DoesNotExist...

Any help is appreciated.

Thanks

--

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.


Reply via email to