Did you add your custom product to your installed apps settings? -Chris
On Wed, Jun 30, 2010 at 4:30 PM, dvd <[email protected]> wrote: > Hi all > > I've prepared a very simple custom product > > --------------------------------------------------------------- > class Ebook(models.Model): > """ > Ebook exlibris > """ > product = models.OneToOneField(Product, verbose_name=_("Product"), > primary_key=True) > is_shippable = False > is_downloadable = True > > def __unicode__(self): > return self.product.slug > > def _get_subtype(self): > return 'Ebook' > > class Meta: > verbose_name = _("Ebook Product") > verbose_name_plural = _("Ebook Products") > --------------------------------------------------------------- > > following the instructions at > http://www.satchmoproject.com/docs/dev/custom-product.html > i wrote a small admin.py and config.py; > > --------------------------------------------------------------- > # -*- coding: UTF-8 -*- > > from django.utils.translation import ugettext_lazy as _ > from livesettings import config_get > > print 'config imported' > PRODUCT_TYPES = config_get('PRODUCT', 'PRODUCT_TYPES') > PRODUCT_TYPES.add_choice(('ex_satchmo::Ebook', _('Ebook'))) > --------------------------------------------------------------- > > My product is correctly imported (I can create instances through the > admin site) > but the link "Add Ebook" under the product subtypes section is missing > (please note > that the string 'config imported' is never printed). > > What I miss? > > tia > david > > -- > 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]<satchmo-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > -- 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.
