I *think* I've got it:) -your clues helped!
I edited the model and left out the subtype stuff. The admin.py stayed
pretty much the same though. The goal was to get the model's fields
to show up on the Product detail admin page as an inline and not have
the app listed on the Admin index page. That is now achieved by
customizing the admin/index.html page to ignore that application.
Hopefully, this is a good way to do it:)
The problem was that I did not register the model with the adminsite
while I was trying to make the product a subtype. It was (I think)
causing the reverse error -no model registered with the site so no
reverse url to the change page.
> I am afraid that you can not use
> admin.site.register(Product, SoftwareOptions)
Really? That is what the docs show.
>
> admin.site.register(SoftwareProduct, SoftwareOptions)
> ('SoftwareProduct' is the name of your descendant of Product, for me
> unknown yet.)
> because some fields are not known for pure Product, but only for a
> descendant.
>
> Subtypes are ment only those in product.modules (configurable, custom,
> downloadable, subscription).
Yeah, this is a bummer when you just want to add an extra field or two
to the Product model. AND have those fields show up in the product
Detail Admin. However, I am still new to Satchmo and am starting to
see how things are supposed to be done.
> Does that help? (The more you explain, the more appears unknown so
> far.)
Yes! Thank You for responding.
--
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.