Hi,

Could you please paste your code somewhere?
Also the files where you overwrite the productadmin class. Did you unregister 
the the original productadmin class and register yours?
If you did straight model inheritance with Product did you register your custom 
product with satchmo in settings.py?

lzantal

On Apr 18, 2011, at 20:03, Brendan F <[email protected]> wrote:

> Hello all,
> 
> Many thanks in advance for your time.
> 
> Problem: My product I will be selling has different attributes than
> the default Product class and I have been stressing out for the last
> four hours trying to find a reasonable way to change these attributes
> (and add many more) before actually moving on to making templates,
> etc.  This must be quite simple! It seems that there are two ways to
> do this...
> 
> 1) Custom Product Attributes.  I am able to successfully add
> attributes, however, I am unable to view these in the Product page in
> the admin site.  When I try to customize the admin page via an
> admin.py file per the directions in the Satchmo tutorial, like so:
> 
> ... some code ...
> list_display = ('name', 'artist',)
> ... rest of code...
> 
> I get an error like this, despite 'artist' existing as an attribute:
> ('artist' is not a callable or an attribute of 'CustomProductAdmin' or
> found in the model 'Product'.)
> 
> 2) Customizing the Product module.  This seems to maybe be the most
> fitting solution.
> 
> http://www.satchmoproject.com/docs/dev/custom-product.html
> 
> But I am miserably struggling with this as well.  I am interpreting
> this suggested approach as being analogous to inheritance, so I simply
> am adding the fields that I need, but maybe that's where I am going
> wrong.  For example, if I try to add the following field within the
> MyNewProduct class:
> 
> artist = models.CharField(_("Artist"), max_length=255, blank=False,
> help_text=_("This is the artist..."))
> 
> I get "no such column: localsite_mynewproduct.artist" even after
> syncing the database.
> 
> ----------------------
> 
> There must be something I am missing here!  I'd really love some help;
> I don't think I've ever been so frustrated with coding... the whole
> Django methodology is great, but Satchmo is giving me a hard time.
> 
> Thanks,
> Brendan
> 
> -- 
> 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.
> 

-- 
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