I need to do something similar, what is the best way to override
admin? Is it possible without modifying product/admin.py?

On Dec 1, 5:01 pm, Bojan Mihelac <[EMAIL PROTECTED]> wrote:
> Hey Chris,
>
> I ended up in adding newmodelforcustomattributes, something like
> this:
>
> class ProductCustomAttribute(models.Model):
>     """(ProductCustomAttribute description)"""
>     product_id = models.ForeignKey(Product)
>     list_price = models.DecimalField(_("List Price"), max_digits=14,
> decimal_places=6, )
>
>     def __unicode__(self):
>         return u"ProductCustomAttribute"
>
> For this to work in admin I had to overide admin for ProductOptions to
> include it as inline.
>
> It is probably not most elegant way but it works for my needs. What I
> thought is that usingmodelinheritance for product would make this
> much easier.
>
> If you are interested I can send you or post whole code for admin.
>
> Bojan
>
> On Dec 1, 8:33 pm, windchime <[EMAIL PROTECTED]> wrote:
>
> > Hey Bojan,
>
> > Sorry to report that I have not.  I was hoping someone from the dev
> > team or a user who had run into this before would reply (is it
> > possible that we are the only two people who have run into this?), but
> > no luck so far.  In the meantime I am looking into other possibilities
> > unfortunately :\  If I do end up figuring it out I will be sure to
> > post the solution here.  Good luck!
>
> > chris.
>
> > On Nov 18, 6:08 am, Bojan Mihelac <[EMAIL PROTECTED]> wrote:
>
> > > Hey Chris, did you manage to solve this problem somehow?
>
> > > Bojan
>
> > > On Nov 13, 10:32 am, Bojan Mihelac <[EMAIL PROTECTED]> wrote:
>
> > > > I would also like to know this.Beside adding attributes I would like
> > > > to remove unnecessary fields form like translations.
>
> > > > On Nov 11, 10:14 pm, windchime <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I'm just trying out Satchmo and I have a need to add some more
> > > > > metadata to products.  It seems that the proper way to do this is to
> > > > > add "Attributes" one by one.  Almost all of the products that will be
> > > > > entered will have the same attribute names (ISBN, Author, etc), and I
> > > > > was hoping that there was some method to save a group of attributes
> > > > > and by default have them ready to fill in on any product in the
> > > > > admin.  Is this possible?  It seems like something like the
> > > > > ProductOption/ProductGroupmodelmay work in the way I'm thinking of
> > > > > this.  That would allow me to say - this product has this group of
> > > > > attributes, and they would be ready to fill in.
>
> > > > > Any suggestions on how to properly do this?  I'm wondering if I'm
> > > > > approaching it completely wrong, because this seems like something
> > > > > that is simple and probably fairly common.  Thanks in advance!
>
> > > > > chris.
>
>
--~--~---------~--~----~------------~-------~--~----~
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