Skip to content

v0.3.1 - Hotfix: plugin extension slots in custom templates

Choose a tag to compare

@iamjohnnymac iamjohnnymac released this 18 May 11:49
74214a7

Hotfix discovered during v0.3.0 live-verify.

Fixed

  • `PluginTemplateExtension` hooks now render on custom detail templates. v0.3.0 shipped the new `SpliceClosureQrCode` / `SpliceTrayQrCode` extensions and enabled `netbox-attachments` to target our models — but the Field QR code panel and the Attachments card never appeared. Root cause: `spliceclosure.html`, `splicetray.html`, `fibretrunk.html`, `ospcable.html`, and `fibrelink.html` all override the `content` block of `generic/object.html` wholesale, swallowing the slot where NetBox renders plugin extensions. Each affected template now loads `{% load plugins %}` and explicitly renders `plugin_right_page`, `plugin_left_page`, and `plugin_full_width_page` in the appropriate positions.

v0.3.0 users on `[qrcode]` / `[attachments]`: upgrade to v0.3.1 to see the panels.

```bash
pip install -U netbox-osp
```