Skip to content

Commit 7a3b7d2

Browse files
napstervrpkilby
authored andcommitted
Fixed method signature in docs (#6931)
1 parent 89ac0a1 commit 7a3b7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/validators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ in the `.validate()` method, or else in the view.
218218
For example:
219219

220220
class BillingRecordSerializer(serializers.ModelSerializer):
221-
def validate(self, data):
221+
def validate(self, attrs):
222222
# Apply custom validation either here, or in the view.
223223

224224
class Meta:

0 commit comments

Comments
 (0)