mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Merge 026f164f7a
into 99382f3ccb
This commit is contained in:
commit
58b05dc55c
|
@ -498,7 +498,7 @@ class Field(object):
|
|||
if data is empty:
|
||||
if getattr(self.root, 'partial', False):
|
||||
raise SkipField()
|
||||
if self.required:
|
||||
if self.required and not getattr(self, 'allow_blank', None):
|
||||
self.fail('required')
|
||||
return (True, self.get_default())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user