mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Merge pull request #12893 from netbox-community/feat/12824-doc
Fixes typo in register_model_view docstring
This commit is contained in:
commit
36e0bf0490
@ -178,7 +178,7 @@ def register_model_view(model, name='', path=None, kwargs=None):
|
|||||||
This decorator can be used to "attach" a view to any model in NetBox. This is typically used to inject
|
This decorator can be used to "attach" a view to any model in NetBox. This is typically used to inject
|
||||||
additional tabs within a model's detail view. For example, to add a custom tab to NetBox's dcim.Site model:
|
additional tabs within a model's detail view. For example, to add a custom tab to NetBox's dcim.Site model:
|
||||||
|
|
||||||
@netbox_model_view(Site, 'myview', path='my-custom-view')
|
@register_model_view(Site, 'myview', path='my-custom-view')
|
||||||
class MyView(ObjectView):
|
class MyView(ObjectView):
|
||||||
...
|
...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user