mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
required
extra argument should be a boolean, not a string. (fixes #5906)
This commit is contained in:
parent
a95cffc73e
commit
489d3415ab
|
@ -222,7 +222,7 @@ For example:
|
|||
|
||||
class Meta:
|
||||
fields = ('client', 'date', 'amount')
|
||||
extra_kwargs = {'client': {'required': 'False'}}
|
||||
extra_kwargs = {'client': {'required': False}}
|
||||
validators = [] # Remove a default "unique together" constraint.
|
||||
|
||||
## Updating nested serializers
|
||||
|
|
Loading…
Reference in New Issue
Block a user