Pārlūkot izejas kodu

17468 add warning to documentation about overriding custom script properties

Arthur Hanson 1 gadu atpakaļ
vecāks
revīzija
35307d213f
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      docs/customization/custom-scripts.md

+ 3 - 0
docs/customization/custom-scripts.md

@@ -72,6 +72,9 @@ script_order = (MyCustomScript, AnotherCustomScript)
 
 Script attributes are defined under a class named `Meta` within the script. These are optional, but encouraged.
 
+!!! warning
+    These are also defined and used as properties on the base custom script class, so don't use the same names as variables or override them in your custom script.
+
 ### `name`
 
 This is the human-friendly names of your script. If omitted, the class name will be used.