Did you syncdb after creating your new model?
On Wed, Dec 2, 2009 at 5:17 AM, Iman <[email protected]> wrote:
> hi .
> i'm trying to customize my products and add some text field to each
> product .
> this is what i've done so far now :
> 1. localsite/models.py :
>
> class MyNewProduct(Product):
> objects = ProductManager()
> product_title = models.CharField(_("product"),max_length=25)
>
> def _get_subtype(self):
> return 'MyNewProduct'
>
> def __unicode__(self):
> return u'MyNewProduct: %s' % self.product.name
>
> class Meta:
> verbose_name = _('My New Product')
> verbose_name_plural = _('My New Products')
>
> 2. localsite/templates/product/detail_mynewproduct.html :
>
> {% extends "product/product.html" %}
> {% block title %}{{ product.mynewproduct.product_title }}{%
> endblock title %}
>
> and configured other files like admin.py and settings.py like custom-
> product.txt file of documentation .
>
> but when i try to load some product get the following error :
>
> TemplateSyntaxError at /
> Caught an exception while rendering: no such column:
> localsite_mynewproduct.product_ptr_id
>
> thanks for your attention ...
>
> --
>
> 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.