mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Merge pull request #1453 from davidbgk/patch-2
Update documentation of render methods (obj to data)
This commit is contained in:
commit
45ae5081f7
|
@ -146,7 +146,7 @@ class XMLRenderer(BaseRenderer):
|
||||||
|
|
||||||
def render(self, data, accepted_media_type=None, renderer_context=None):
|
def render(self, data, accepted_media_type=None, renderer_context=None):
|
||||||
"""
|
"""
|
||||||
Renders *obj* into serialized XML.
|
Renders `data` into serialized XML.
|
||||||
"""
|
"""
|
||||||
if data is None:
|
if data is None:
|
||||||
return ''
|
return ''
|
||||||
|
@ -196,7 +196,7 @@ class YAMLRenderer(BaseRenderer):
|
||||||
|
|
||||||
def render(self, data, accepted_media_type=None, renderer_context=None):
|
def render(self, data, accepted_media_type=None, renderer_context=None):
|
||||||
"""
|
"""
|
||||||
Renders *obj* into serialized YAML.
|
Renders `data` into serialized YAML.
|
||||||
"""
|
"""
|
||||||
assert yaml, 'YAMLRenderer requires pyyaml to be installed'
|
assert yaml, 'YAMLRenderer requires pyyaml to be installed'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user