mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-01 07:03:22 +02:00
Fix examples for type of class Meta() (#20799)
This commit is contained in:
@@ -95,7 +95,7 @@ An example fieldset definition is provided below:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
class MyScript(Script):
|
class MyScript(Script):
|
||||||
class Meta:
|
class Meta(Script.Meta):
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
('First group', ('field1', 'field2', 'field3')),
|
('First group', ('field1', 'field2', 'field3')),
|
||||||
('Second group', ('field4', 'field5')),
|
('Second group', ('field4', 'field5')),
|
||||||
@@ -510,7 +510,7 @@ from extras.scripts import *
|
|||||||
|
|
||||||
class NewBranchScript(Script):
|
class NewBranchScript(Script):
|
||||||
|
|
||||||
class Meta:
|
class Meta(Script.Meta):
|
||||||
name = "New Branch"
|
name = "New Branch"
|
||||||
description = "Provision a new branch site"
|
description = "Provision a new branch site"
|
||||||
field_order = ['site_name', 'switch_count', 'switch_model']
|
field_order = ['site_name', 'switch_count', 'switch_model']
|
||||||
|
|||||||
Reference in New Issue
Block a user