mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +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'
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user