diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index fe688facc..58788bc23 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -393,7 +393,7 @@ class AutoSchema(ViewInspector): schema['writeOnly'] = True if field.allow_null: schema['nullable'] = True - if field.default and field.default != empty and not callable(field.default): # why don't they use None?! + if field.default and field.default != empty and not callable(field.default): schema['default'] = field.default if field.help_text: schema['description'] = str(field.help_text)