Quellcode durchsuchen

Correct custom validators docs

kkthxbye-code vor 3 Jahren
Ursprung
Commit
50428c3f01
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      docs/customization/custom-validation.md

+ 3 - 3
docs/customization/custom-validation.md

@@ -105,11 +105,11 @@ from my_validators import Validator1, Validator2, Validator3
 
 
 CUSTOM_VALIDATORS = {
 CUSTOM_VALIDATORS = {
     'dcim.site': (
     'dcim.site': (
-        Validator1,
-        Validator2,
+        Validator1(),
+        Validator2(),
     ),
     ),
     'dcim.device': (
     'dcim.device': (
-        Validator3,
+        Validator3(),
     )
     )
 }
 }
 ```
 ```