Archived
fix: register IP range list buttons on NetBox 4.6+
NetBox resolves template_content relative to the PluginConfig's module, so the extension was never loaded while the config lived in config.py. NetBox 4.7 also only reads the models list, not the singular model attribute. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
4eaf037ae6
commit
34be43bffb
3 files changed
+31
-28
No files matched your search
@@ -2,7 +2,7 @@ from netbox.plugins import PluginTemplateExtension
|
||||
|
||||
|
||||
class IPRangeListActions(PluginTemplateExtension):
|
||||
model = "ipam.iprange"
|
||||
models = ["ipam.iprange"]
|
||||
|
||||
def list_buttons(self):
|
||||
return self.render("netbox_better_ips/inc/iprange_list_buttons.html")
|
||||
|
||||
Reference in new issue
Block a user