Wrap messages in block in admin base template
|Reported by:||Ben Davis||Owned by:||Ben Davis|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Sometimes it is useful to be able to override how messages are displayed in the admin site. For example, if you want to have different message types (e.g., error, warning, etc..) you'll need to be able to override the messages <ul> in base.html. Unfortunately, it's not in a block so you'd have to copy the entire base.html to your app, which is not good.
This simple patch wraps it in block tags so it can be overridden.
Change History (4)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|