mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Renderer uses form field's label and help, not attribute name
This commit is contained in:
parent
764299843c
commit
1343398868
|
@ -366,7 +366,8 @@ class BrowsableAPIRenderer(BaseRenderer):
|
|||
if getattr(v, 'default', None) is not None:
|
||||
kwargs['initial'] = v.default
|
||||
|
||||
kwargs['label'] = k
|
||||
kwargs['label'] = v.label
|
||||
kwargs['help_text'] = v.help_text
|
||||
|
||||
fields[k] = v.form_field_class(**kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user