Skip to content

Commit 430a567

Browse files
Update openapi.py
1 parent ced37a5 commit 430a567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/schemas/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _map_serializer(self, serializer):
393393
schema['writeOnly'] = True
394394
if field.allow_null:
395395
schema['nullable'] = True
396-
if field.default and field.default != empty and not callable(field.default): # why don't they use None?!
396+
if field.default and field.default != empty and not callable(field.default):
397397
schema['default'] = field.default
398398
if field.help_text:
399399
schema['description'] = str(field.help_text)

0 commit comments

Comments
 (0)