mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Use field name instead of source when generating docs (#4559)
This commit is contained in:
parent
7f29cfc931
commit
02fcf6a334
|
@ -477,7 +477,7 @@ class SchemaGenerator(object):
|
||||||
required = field.required and method != 'PATCH'
|
required = field.required and method != 'PATCH'
|
||||||
description = force_text(field.help_text) if field.help_text else ''
|
description = force_text(field.help_text) if field.help_text else ''
|
||||||
field = coreapi.Field(
|
field = coreapi.Field(
|
||||||
name=field.source,
|
name=field.field_name,
|
||||||
location='form',
|
location='form',
|
||||||
required=required,
|
required=required,
|
||||||
description=description,
|
description=description,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user