Skip to content

Commit 489d341

Browse files
committed
required extra argument should be a boolean, not a string. (fixes #5906)
1 parent a95cffc commit 489d341

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
@@ -222,7 +222,7 @@ For example:
222222

223223
class Meta:
224224
fields = ('client', 'date', 'amount')
225-
extra_kwargs = {'client': {'required': 'False'}}
225+
extra_kwargs = {'client': {'required': False}}
226226
validators = [] # Remove a default "unique together" constraint.
227227

228228
## Updating nested serializers

0 commit comments

Comments
 (0)