Wrap messages in block in admin base template
|Reported by:||bendavis78||Owned by:||bendavis78|
|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)
Changed 7 years ago by bendavis78
comment:1 Changed 7 years ago by bendavis78
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 7 years ago by bendavis78
- Owner changed from nobody to bendavis78
- Status changed from new to assigned