Archived
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]>
12 lines
287 B
Python
12 lines
287 B
Python
from netbox.plugins import PluginTemplateExtension
|
|
|
|
|
|
class IPRangeListActions(PluginTemplateExtension):
|
|
models = ["ipam.iprange"]
|
|
|
|
def list_buttons(self):
|
|
return self.render("netbox_better_ips/inc/iprange_list_buttons.html")
|
|
|
|
|
|
template_extensions = (IPRangeListActions,)
|