Skip to content

Commit 975e0ff

Browse files
authored
Fix examples for type of class Meta() (#20799)
1 parent d7877b7 commit 975e0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/customization/custom-scripts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ An example fieldset definition is provided below:
9595

9696
```python
9797
class MyScript(Script):
98-
class Meta:
98+
class Meta(Script.Meta):
9999
fieldsets = (
100100
('First group', ('field1', 'field2', 'field3')),
101101
('Second group', ('field4', 'field5')),
@@ -510,7 +510,7 @@ from extras.scripts import *
510510

511511
class NewBranchScript(Script):
512512

513-
class Meta:
513+
class Meta(Script.Meta):
514514
name = "New Branch"
515515
description = "Provision a new branch site"
516516
field_order = ['site_name', 'switch_count', 'switch_model']

0 commit comments

Comments
 (0)