Thank you Josh for your responses,

There may be some other way to encapsulate code in your app, but the 
> Mezzanine way is to use EXTRA_MODEL_FIELDS.
>
> Ok, Is it possible to move the settings.py inside my app, only to put 
these particular things?

 

> The Page admin automatically picks up additional fields if a models admin 
> class doesn't specify it's own fields/fieldsets.
>
> OK understood, but then when I have to unregister and register?
 

> Could you explain your last question a bit more?  You could probably 
> monkey patch the additional field onto the GalleryImageInline class.
>
>
The galleries/admin.py is:

class GalleryImageInline(TabularDynamicInlineAdmin):
    model = GalleryImage
class GalleryAdmin(PageAdmin):
    class Media:
        css = {"all": ("mezzanine/css/admin/gallery.css",)}
    inlines = (GalleryImageInline,)
admin.site.register(Gallery, GalleryAdmin)

And I inject a new field that is shown very bad in the admin page, and I 
want to customize this. Do you have some examples and documentation about 
monkey patch? I read some in 
http://bitofpixels.com/blog/techniques-for-modifying-mezzanine/ and another 
sources but I can't understand exactly how and what is this. And the best, 
how you do this?

Thank you very much

laperl
 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to