Explorar o código

Merge pull request #9200 from kkthxbye-code/fix-9189

Fixes #9189:  Correct custom validators docs
Jeremy Stretch %!s(int64=3) %!d(string=hai) anos
pai
achega
74b5e55643
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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 = {
     'dcim.site': (
-        Validator1,
-        Validator2,
+        Validator1(),
+        Validator2(),
     ),
     'dcim.device': (
-        Validator3,
+        Validator3(),
     )
 }
 ```