Просмотр исходного кода

Merge pull request #3701 from hSaria/3697-custom-scripts-example-typo

Fixes #3697: Correct field_order attribute name
Jeremy Stretch 6 лет назад
Родитель
Сommit
6a451e0c0e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/additional-features/custom-scripts.md

+ 1 - 1
docs/additional-features/custom-scripts.md

@@ -182,7 +182,7 @@ class NewBranchScript(Script):
     class Meta:
         name = "New Branch"
         description = "Provision a new branch site"
-        fields = ['site_name', 'switch_count', 'switch_model']
+        field_order = ['site_name', 'switch_count', 'switch_model']
 
     site_name = StringVar(
         description="Name of the new site"