mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Drop help_text
This commit is contained in:
parent
643d3491a6
commit
dab177e29e
|
@ -110,7 +110,7 @@ class WritableField(Field):
|
||||||
|
|
||||||
def __init__(self, source=None, readonly=False, required=None,
|
def __init__(self, source=None, readonly=False, required=None,
|
||||||
validators=[], error_messages=None, widget=None,
|
validators=[], error_messages=None, widget=None,
|
||||||
help_text=None, initial=None):
|
initial=None):
|
||||||
|
|
||||||
super(WritableField, self).__init__(source=source)
|
super(WritableField, self).__init__(source=source)
|
||||||
|
|
||||||
|
@ -131,7 +131,6 @@ class WritableField(Field):
|
||||||
|
|
||||||
# These attributes are ony used for HTML forms.
|
# These attributes are ony used for HTML forms.
|
||||||
self.initial = initial
|
self.initial = initial
|
||||||
self.help_text = help_text and smart_unicode(help_text) or ''
|
|
||||||
|
|
||||||
widget = widget or self.widget
|
widget = widget or self.widget
|
||||||
if isinstance(widget, type):
|
if isinstance(widget, type):
|
||||||
|
|
|
@ -286,8 +286,6 @@ class BrowsableAPIRenderer(BaseRenderer):
|
||||||
kwargs['widget'] = v.widget
|
kwargs['widget'] = v.widget
|
||||||
if getattr(v, 'initial', None):
|
if getattr(v, 'initial', None):
|
||||||
kwargs['initial'] = v.initial
|
kwargs['initial'] = v.initial
|
||||||
if getattr(v, 'help_text', None):
|
|
||||||
kwargs['help_text'] = v.help_text
|
|
||||||
kwargs['label'] = k
|
kwargs['label'] = k
|
||||||
print kwargs
|
print kwargs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user