فهرست منبع

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

Fixes #3697: Correct field_order attribute name
Jeremy Stretch 6 سال پیش
والد
کامیت
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:
     class Meta:
         name = "New Branch"
         name = "New Branch"
         description = "Provision a new branch site"
         description = "Provision a new branch site"
-        fields = ['site_name', 'switch_count', 'switch_model']
+        field_order = ['site_name', 'switch_count', 'switch_model']
 
 
     site_name = StringVar(
     site_name = StringVar(
         description="Name of the new site"
         description="Name of the new site"