You want to use admin.site.unregister to unregister the existing admin
models and register your new model with the additional fields.

Check out some more here -
http://www.satchmoproject.com/docs/dev/custom-admin.html


-Chris

On Tue, Apr 24, 2012 at 12:58 AM, Thomas <[email protected]> wrote:

> Hi,
>
> I would like to add a third column in the admin view for Product -> Option
> Groups
> Currently there are two columns: 'Site' and 'Name of Option Group'
> (It is the admin page where it says 'Select Option Group to change'
>
> The column I want to add is 'Detailed Description'. ie the 'description'
> field from the model.
>
> I have done this by modifying the satchmo source, but obviously that is
> not the preferred way to do it.
>
> Here is what I changed: In src/satchmo/satchmo/apps/product/admin.py I
> added the following line to
>  class OptionGroupOptions(admin.ModelAdmin):
>
>      list_display += ('description',)
>
> Is it possible to do this without changing the original Satchmo source?
>
> Many thanks,
> Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/satchmo-users/-/W4G7eBzy7bMJ.
> 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