From 430a5672582ef3984362d1189ac1250586e28b0d Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 3 Jan 2020 13:50:26 +0000 Subject: [PATCH] Update openapi.py --- rest_framework/schemas/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)