Looks like my initial reply was lost in moderation.
Here's the recap --
In order to get the "Add MyNewProduct" link to work, add the following
to the top of your models.py:
SATCHMO_PRODUCT = True
def get_product_types():
return ('MyNewProduct',)
On Dec 14, 8:30 pm, truckGuy <[email protected]> wrote:
> I am trying to follow the documentation to create a custom product.
>
> from django.utils.translation import ugettext_lazy as _
> from livesettings import config_get
>
> PRODUCT_TYPES = config_get('PRODUCT', 'PRODUCT_TYPES')
>
> # TODO: Replace app name!
> PRODUCT_TYPES.add_choice(('my_app::MyNewProduct', _('My New
> Product')))
>
> The config.py file doesn't create an “Add MyNewProduct” link in the
> “Product Subtypes” section of each product’s admin page. I didn't find
> any place define 'PRODUCT_TYPES' attribute. Can somebody help?
--
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.