Commit 02fcf6a3 by SerenityCode Committed by Tom Christie

Use field name instead of source when generating docs (#4559)

parent 7f29cfc9
......@@ -477,7 +477,7 @@ class SchemaGenerator(object):
required = field.required and method != 'PATCH'
description = force_text(field.help_text) if field.help_text else ''
field = coreapi.Field(
name=field.source,
name=field.field_name,
location='form',
required=required,
description=description,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment