xadmin icon indicating copy to clipboard operation
xadmin copied to clipboard

About inlines field's style

Open yehaoo123 opened this issue 6 years ago • 1 comments

I inline a field, how to add a style to it?

yehaoo123 avatar Feb 16 '19 14:02 yehaoo123

https://github.com/sshwsfc/xadmin/blob/master/xadmin/plugins/inline.py

Inline models are managed by plugin. Use the style (def. stacked) attribute in your admin model class.

Notice that in the link above, style_manager is who registers styles (you could even register your own styles).

alexsilva avatar Feb 25 '19 11:02 alexsilva