From a540dc1407ff1b484341e95f519ea14f266a86ac Mon Sep 17 00:00:00 2001 From: Milad Gholamrezaei Date: Tue, 9 Jun 2020 18:20:52 +0430 Subject: [PATCH] update doc --- rest_framework/validators.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest_framework/validators.py b/rest_framework/validators.py index 2f3aadef9..e5acb598e 100644 --- a/rest_framework/validators.py +++ b/rest_framework/validators.py @@ -40,6 +40,9 @@ class PasswordValidator: Should be applied to an individual field on the serializer. + If you use this class at serializers' field validators, UserAttributeSimilarityValidator won't affect + You can use validate_FOO() and pass user to PasswordValidator. + If the password is valid, return ``None``. """